• could you give me some clues to achieve something like this in a wordpress theme :
    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)
  • 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

    (@aka_marvin)

    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.

    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

    Thread Starter aka_marvin

    (@aka_marvin)

    with more than 370 theme, I did not check them all. but from what i saw of the 100 latest there is not.

    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

    (@aka_marvin)

    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.