Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Adding bkground color to sidebar widget titles/headers

Old Oct 16, 2009, 10:50 AM
6 posts · Feb 2009
Boston, Massachusetts
Apparently I was using the wrong forum, so I will try this again.

I'm trying to add a bkground color to all the widget sidebar titles/headers.

I found this link here:

that says to do this:

through HTML/CSS Inserts -> CSS Inserts

div.widget_categories .widget-title {
border: solid 1px #000000;
background: #eeeeee;
padding: 5px;

I did the above and it only changed for the categories widget.

What do I put in place of "categories" to have it work for other widgets like ad rotator widgets and recent posts widget? I've tried recentposts, recent-posts, recent_posts and it didn't work.

I'm using the most recent wordpress and theme at bestallergysites.com

Thanks in advance!

ETA: "text" works for text widgets-but still having trouble with header recent posts and ad rotator 1

Last edited by RuthSmith; Oct 16, 2009 at 10:56 AM.
Old Oct 16, 2009, 11:19 AM
juggledad's Avatar
23,739 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you will need to look at the a page then it's generated source to see what other CSS selectors you will need, like for ad rotator

For recent posts, you can use 'div.widget div.widget-title h3'
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Oct 16, 2009, 11:42 AM
6 posts · Feb 2009
Boston, Massachusetts
Thank you so much. That def worked.

However, it then bumped the size of the colored box behind the categories bar. I manually adjusted the padding (it's now down to 0 for categories and 6 for recent posts), but wondering why it would do that.

Thanks again for the prompt reply and help!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sticky Headers + Sidebar justjoolz Atahualpa 3 Wordpress theme 1 Apr 7, 2009 05:57 AM
How do I use TTF Titles Plugin on the widget titles? chavahn Sidebars & Widgets 0 Mar 5, 2009 10:05 AM
Want to set background-color only under the title of categories widget in the sidebar MarkusM. Sidebars & Widgets 5 Feb 12, 2009 04:45 PM
Take Page Titles and Widget Titles for example... bseppa Sidebars & Widgets 0 Dec 12, 2008 07:44 PM

All times are GMT -6. The time now is 04:32 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.