• Resolved hardree

    (@hardree)


    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • url to your site?

    Peter

    Thread Starter hardree

    (@hardree)

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

    Here it is though: https://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.

    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.

    Thread Starter hardree

    (@hardree)

    Awesome!

    That’s exactly what I needed.

    Thanks!

    Thread Starter hardree

    (@hardree)

    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?

    Thread Starter hardree

    (@hardree)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Want to format the categories list in sidebar’ is closed to new replies.