The MU forums have moved to WordPress.org

How to style CATEGORY widget for all blogs? (4 posts)

  1. boonika
    Member
    Posted 15 years ago #

    I have a problem with styling category widget for all of my blogs. Looks like every new category widget has it's own code (number) attached to #categories. Right now, category widget on my main blog is named #categories-151579731. Same goes for text widgets. Meta widget, for example, only uses #meta and it's style is applied trough all blogs and that's just what I want to achieve with category and text widgets. I hope this makes sense:)

    Thanks in advance

  2. andrea_r
    Moderator
    Posted 15 years ago #

    Well, using Firefox and the lovely Firebug extension (I heart it SO MUCH because it makes this easy) I found out that the category widget has this applied:

    class="widget widget_categories"

    Add that to each theme's stylesheet, style as you like.

    (and that would be - )

    #widget widget_categories {
    mystuff:here;
    }

    li#categories.widget might be helpful too.

  3. boonika
    Member
    Posted 15 years ago #

    Thanks a bunch andrea. I'll give it a try.

  4. boonika
    Member
    Posted 15 years ago #

    Well that didn't work. But this did:

    #sidebar .widget_categories

    Maybe that's because #sidebar already had some parts of widget-style defined previously (before I edited the style sheet) and #sidebar .widget_categories overwrites it. Same goes for other widgets. Thanks anyway for helping me find the solution.

About this Topic