Forums

[resolved] Want to format the categories list in sidebar (7 posts)

  1. hardree
    Member
    Posted 1 month ago #

    I'm using the standard Categories widget in my sidebar and I'd love to be able to format it from my theme. Is that possible in style.css or do I need to edit a different file? Also, what are the tags being used in that widget? I assume there is a class #categories someplace and probably ul li a {}. I just can't find where I can apply the css. Would love some help.

    Thanks!

  2. pboosten
    Member
    Posted 1 month ago #

    url to your site?

    Peter

  3. hardree
    Member
    Posted 1 month ago #

    I'm just talking about the standard categories widget preinstalled with WP.

    Here it is though: http://nextexitcpa.com

    I found classes "widget widget_categories", "cat-item cat-item-3", and "cat-item cat-item-6" but anything I define in style.css for those classes seems to have no effect.

  4. esmi
    Member
    Posted 1 month ago #

    I'm just talking about the standard categories widget preinstalled with WP.

    The formatting of that widget's output will be affected by your current theme - hence the need to see your site first.

    The relevant classes are:

    #sidebar_right li.widget_categories
    #sidebar_right .widget_categories h2.widgettitle
    #sidebar_right .widget_categories ul
    #sidebar_right .widget_categories li.cat-item

    what are the tags being used in that widget

    h2, ul and li. Just look in the source of a page.

  5. hardree
    Member
    Posted 1 month ago #

    Awesome!

    That's exactly what I needed.

    Thanks!

  6. hardree
    Member
    Posted 1 month ago #

    Ok, another related question: why won't list-style-image and list-style-type work on #sidebar_right .widget_categories ul?

    I can get it to work on #sidebar_right ul, but when I move it to .widget_categories I get no effect. I'd really like to remove the ">" because it's messing up the display:block on my links.

    Any thoughts?

  7. hardree
    Member
    Posted 1 month ago #

Reply

You must log in to post.

About this Topic