Support » Fixing WordPress » Category Widget Formatting

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@alchymyth)

    Forum Moderator

    add a filter 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;
    }

    Most excellent my friend. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category Widget Formatting’ is closed to new replies.