Title: Adding &#8216;category icons&#8217; using widgets in wordpress?
Last modified: August 18, 2016

---

# Adding ‘category icons’ using widgets in wordpress?

 *  [js09](https://wordpress.org/support/users/js09/)
 * (@js09)
 * [19 years ago](https://wordpress.org/support/topic/adding-category-icons-using-widgets-in-wordpress/)
 * On my sidebar I have different categories that are all the same style. the CSS
   code is:
 *     ```
       li.widget h2, li.linkcat h2 (line 297)
       {
       width: 190px;
       font-weight: bold;
       font-size: 1.077em;
       text-transform: uppercase;
       letter-spacing: normal;
       margin-top: 0pt;
       margin-right: 0pt;
       margin-bottom: 0.8em;
       margin-left: 6px;
       padding-top: 0.4em;
       padding-right: 2px;
       padding-bottom: 0.4em;
       padding-left: 0pt;
       border-top-width: 3px;
       border-top-style: solid;
       border-top-color: #cfcfcf;
       background-image: url(http://www.niftytutorials.com/wp-content/themes/nifty-v1/images/hr_line_black.gif);
       background-repeat: no-repeat;
       background-x-position: 0pt;
       background-y-position: 100%;
       }
       ```
   
 * so i’m unsure how to give EACH category its own image. For example, if i change
   the background image it is changed for every category.
 * Any ideas how I can customly give each categories there own classes or something
   of the like? thanks.

Viewing 1 replies (of 1 total)

 *  [Adam Brown](https://wordpress.org/support/users/adamrbrown/)
 * (@adamrbrown)
 * [19 years ago](https://wordpress.org/support/topic/adding-category-icons-using-widgets-in-wordpress/#post-562214)
 * You’ll need to fiddle with the category widget’s code to make it give a unique
   id to each link.

Viewing 1 replies (of 1 total)

The topic ‘Adding ‘category icons’ using widgets in wordpress?’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Adam Brown](https://wordpress.org/support/users/adamrbrown/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/adding-category-icons-using-widgets-in-wordpress/#post-562214)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
