WordPress.org

Support

Support » Themes and Templates » Can you make different categories have different color headings?

Can you make different categories have different color headings?

  • 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…???

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Sweet thanks. I”ll try it out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can you make different categories have different color headings?’ is closed to new replies.