Title: post count display (add css)
Last modified: August 19, 2016

---

# post count display (add css)

 *  [nakedsoul](https://wordpress.org/support/users/nakedsoul/)
 * (@nakedsoul)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/post-count-display-add-css/)
 * 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](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/post-count-display-add-css/#post-2027888)
 * Post a link to a page where the widget is showing so folks can look at the code.
 *  Thread Starter [nakedsoul](https://wordpress.org/support/users/nakedsoul/)
 * (@nakedsoul)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/post-count-display-add-css/#post-2027892)
 * i thought folks have here wordpress.
    but ok. here is the category-template.php
   [http://nopaste.info/71dad02950.html](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](https://wordpress.org/support/users/zenichro/)
 * (@zenichro)
 * [15 years ago](https://wordpress.org/support/topic/post-count-display-add-css/#post-2028179)
 * 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.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 3 replies
 * 3 participants
 * Last reply from: [zenichro](https://wordpress.org/support/users/zenichro/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/post-count-display-add-css/#post-2028179)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
