Forums

Odd sidebar postcount error (4 posts)

  1. owdlvr
    Member
    Posted 1 year ago #

    Wondering if I can get some help with the style sheet on my latest wordpress blog. Somehow I've messed up the post-count numbers so they now appear below the appropriate section in the sidebar. Can anyone point me to the correct area of the css to fix this, and how?

    -Dave

  2. Alex Mansfield
    Member
    Posted 1 year ago #

    One way to take care of that would be including the post-count in the <a> tags. Right now, the theme is outputting something like this:

    <li class="cat-item cat-item-1"><a href="http://www.connormacdougall.com/news/category/riding/" title="View all posts filed under Riding">Riding</a> (3)

    You'll want to change the sidebar.php file to so that it outputs:

    <li class="cat-item cat-item-1"><a href="http://www.connormacdougall.com/news/category/riding/" title="View all posts filed under Riding">Riding (3)</a>

  3. owdlvr
    Member
    Posted 1 year ago #

    Hmm...I've been using the widgets included with my theme (Lavinya Black), but for the moment have simply shut off the post count. Will need to work out a solution down the road.

    Thanks for your help though!

    -D

  4. Alex Mansfield
    Member
    Posted 1 year ago #

    You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic