Different CSS Based on Category
-
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 CatThis post would have an orange title using a serif font.
Then I have a second post.
Title: Second Post
Category: Sub-CatSub-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.