Support » Themes and Templates » Different CSS Based on Category

  • Resolved noelgreen


    I’m wondering how to make a title of a post have different CSS based on what category it’s in… or, better yet, if it’s a sub-category or not.

    So, I have a post.
    Title: This Post
    Category: Main Cat

    This post would have an orange title using a serif font.

    Then I have a second post.
    Title: Second Post
    Category: Sub-Cat

    Sub-Cat is a sub-category of “Main Cat”. “Main Cat” is its parent category in other words. So, “Second Post” would have a green title in a sans-serif font.

    Is this fairly easy to do?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Different CSS Based on Category’ is closed to new replies.