Categories: Uncategorized

Aside for Widgets

Sidebar Widgets are a main feature of any Magazine Blogging site. To aid with that Dispatch uses a nifty little plugin and a couple of custom CSS classes to make styling your sidebar a breeze.

Widget CSS Classes

Using the namesake plugin you can now add CSS Classes to Widgets. Simple.

Dispatch Widget Classes

CSS Class: zero-padding
Removes the padding from the widget. Perfect for adding those banner ads for maximum space.

CSS Class: no-background
Removes the widget color background that is set in the Customizer.

CSS Class: wpsp-card
Used exclusively with the WP Show Posts Widget and with zero-padding and no-background.
Read more here

Adding your own classes

Want different color background for your widgets. Heres how to. Add you Custom Class Name to your widget. In this example we’ll go for a red color and name our class red-background. Now thats added lets add some CSS.


.widget.red-background {
    background-color: #ff0000;
}
China-Underground

China-underground.com includes thousands of articles on news, Chinese history, Chinese art, Chinese literature , China pictures gallery, videos, and Chinese cinema.

Share
Published by
China-Underground

Recent Posts

Vegetarianism in China: Between Past and Sustainable Future

Celebration of October 1st: World Vegetarian Day and Vegetarianism in China. October 1st Celebrating World…

3 days ago

Ancient Chinese Astronomy: History, Myths & Facts

From Xiu to Dragons: Understanding Chinese Constellations. Ancient Chinese astronomy reflects a deep-rooted interest in…

1 week ago

China’s “996” Work Culture: Impacts and Implications

Balancing Ambition and Well-being: A Look at the "996" Phenomenon. The "996" work culture (九九六工作制)…

2 weeks ago

Hong Kong’s Quest for Gender Equality: TWF’s #BreakZeroSum Campaign 2023

Gender Equality is a Win-win. The Women's Foundation (TWF) launched the #BreakZeroSum video campaign aimed…

2 weeks ago

Journey to Wang Tong: Larry Feign’s Enigmatic Village Tales

The Village At The Center of the World: Larry Feign's Vivid Visual Chronicles Acclaimed writer…

2 weeks ago

Tokyo Experiences the Charm of Sichuan Baijiu and Culinary Wonders

The Fusion of Flavors: Sichuan Meets Tokyo. The flavors and traditions of China's premier liquor…

3 weeks ago