Category Widget | WordPress.org

[ad_1]

Plugin Author
Steven

(@shazahm1hotmailcom)

Add the following CSS to the theme’s custom CSS area found in the Customizer:

.widget_cnw_categories li.cat-item.current-cat {
    background-color: #666;
    padding: 6px 12px;
}

.widget_cnw_categories li.current-cat a {
    color: #fff;
}

Tweak the colors as desired.

I hope this helps; please let me know.

Plugin Author
Steven

(@shazahm1hotmailcom)

Oh, sorry I forget to mention what will change…

This will make the currently active category have a background color with white text. I chose a grey color from the theme for the background color.

Thank you Steven,

I added this CSS which sort of worked. It does highlight a category but does not change when I select a new category. (see

.widget_cnw_categories li.cat-item.current-cat {
background-color: #2c651a;
padding: 6px 12px;
}

.widget_cnw_categories li.current-cat a {
color: #fff;
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer