• i Have a very simple question.
    i want to add css style to the “post count number” in the categorie widget. I havent find the position where this count is in the code.
    ive checked among other things category-template.php .

    can someone please refer to the line where it is.

    example:

    Categorie1 (18)

    i want to make the (18) smaller and change color.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Post a link to a page where the widget is showing so folks can look at the code.

    Thread Starter nakedsoul

    (@nakedsoul)

    i thought folks have here wordpress.
    but ok.
    here is the category-template.php
    http://nopaste.info/71dad02950.html

    and here the part

    <!-- Content Starts -->
        <div class="content">
    
                    <div class="box-bg fr">
    <div id="sidebar" class="box">
    	<!-- Widgetized Sidebar -->
    	<div class="box-bg"><div id="categories-6" class="block widget widget_categories box"><h3><span style="width: 81px; height: 14px;" class="cufon cufon-canvas"><canvas style="top: -2px; left: -2px;" height="17" width="96"></canvas><span class="cufon-alt">Kategorien</span></span></h3>		<ul>
    	<li class="cat-item cat-item-14"><a href="/category/categorie/" title="Alle unter Categorie1 abgelegten Artikel ansehen">Categorie1</a> (41)
    </li>
    zenichro

    (@zenichro)

    hi,

    How about trying to change line 874 like this:

    //	$link .= ' (' . intval($category->count) . ')';
    	$link .= '<span class="catCount"> (' . intval($category->count) . ')</span>';

    You’ll get <span> tag with a class named “catCount” around category number.
    Then you can add style for this new class.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘post count display (add css)’ is closed to new replies.