Can you make different categories have different color headings? (3 posts)

  1. Jenny37
    Posted 11 years ago #

    Is this possible? Like Categorie News is blue or maybe even a special graphic next to the heading... and another section... Events is red or whatever...???

  2. dedge
    Posted 11 years ago #

    You could use the in_category template tag to write some custom style rules, for example:
    <?php if ( in_category(4) ); ?>
    <div class="cat4heading">
    <?php endif; ?>

    would apply a specific heading to category 4, as defined in your CSS style sheet.

    There's a plugin to add category images.

  3. Jenny37
    Posted 11 years ago #

    Sweet thanks. I"ll try it out.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.