Forums

[resolved] "Categories" widget editing help! (3 posts)

  1. Omegazion
    Member
    Posted 2 years ago #

    My blog: http://www.omega-dev.net
    Do you see the Categories box (image)? Well, as you can see, the "number of posts" is below the category name. That is wrong, it should be next to the category name instead.

    What do I have to edit? I am using iStudio theme. Thanks.

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    this is caused by a 'display: block;' in the style for the sidebar (category) links;

    try to add this to functions.php of your theme:

    add_filter('wp_list_categories', 'cat_count_inline');
    function cat_count_inline($links) {
    $links = str_replace('</a> (', ' (', $links);
    $links = str_replace(')', ')</a>', $links);
    return $links;
    }
  3. Omegazion
    Member
    Posted 2 years ago #

    Thanks! Working properly now!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.