Title: category colour
Last modified: August 18, 2016

---

# category colour

 *  [aka_marvin](https://wordpress.org/support/users/aka_marvin/)
 * (@aka_marvin)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/category-colour/)
 * could you give me some clues to achieve something like this in a wordpress theme:
   
   [http://www.accesspdf.com](http://www.accesspdf.com)
 * Where categories (topics in geeklog terminology) have a distinctive color and
   it shows in the post display and the menu.
 * got to define css classes for each category i want colored and the theme must
   generate this classes in the html each time and everywhere it has to.
 * any other clues ? some existing theme or category functions that could do the
   job, maybe when slightly hacked.

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

 *  [Kate](https://wordpress.org/support/users/katie1/)
 * (@katie1)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/category-colour/#post-321843)
 * Do you mean the little boxes on the left Or the really large boxes that actually
   hold post content?
 * I’m also assuming you’re talking about the thick blue color border at the top
   of each box?
 *  Thread Starter [aka_marvin](https://wordpress.org/support/users/aka_marvin/)
 * (@aka_marvin)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/category-colour/#post-321846)
 * as I’m talking about colours, yes I mean the little boxes and the underline that
   changes according to the category of the post.
    And look at the up-left menu,
   having also the same colours for each category.
 *  [Kate](https://wordpress.org/support/users/katie1/)
 * (@katie1)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/category-colour/#post-321850)
 * Have you checked WordPress theme directory to see if there’s a theme already 
   in existence which can/has accomplished what you’re after?
 * [WordPress Theme Directory](http://wordpress.org/extend/themes/)
 *  Thread Starter [aka_marvin](https://wordpress.org/support/users/aka_marvin/)
 * (@aka_marvin)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/category-colour/#post-321855)
 * with more than 370 theme, I did not check them all. but from what i saw of the
   100 latest there is not.
 *  [iand](https://wordpress.org/support/users/iand/)
 * (@iand)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/category-colour/#post-321856)
 * I have no idea if this will work, but maybe something like:
    `<div class="<?php
   the_category_rss();?>"> Filed under: <?php the category() ;?> </div> And define
   your styles to the css as appropriate.
 * I think this will definately go horribly wrong if you posts are in multiple categories.
 *  Thread Starter [aka_marvin](https://wordpress.org/support/users/aka_marvin/)
 * (@aka_marvin)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/category-colour/#post-321858)
 * Thanks, i’ll investigate this.
 * “I think this will definately go horribly wrong if you post to multiple categories.”
 * I thought about that . But it’s not cloning this design that i want and I ‘m 
   not planning to post to multiple categories.
 * I was thinking of main colours and shades or pastels of these main colours for
   sub-categories.
 * It would imply more frequent maintenance of CSS for each change in the category
   tree but it’s the price to pay, I think.

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

The topic ‘category colour’ is closed to new replies.

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [aka_marvin](https://wordpress.org/support/users/aka_marvin/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/category-colour/#post-321858)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
