Support » Themes and Templates » Title depending on category

Title depending on category

  • Hi there, fellow WordPressers! 😀

    I’ve had my blog for about one year now, and thought it might be a good idea to modify the blog a lil’ for its anniversary! Haha.

    However, I write a longer text every Friday which is appreciated by many readers. It’s under a certain category.

    What I would like to do is to edit the post title and font in the title if the post is in this category. Or possibly add like a picture in the header or so.

    I need an if-statement, and that’s about how long I figured.

    Any suggestions on how I could work this out?


Viewing 1 replies (of 1 total)
  • Actually, you don’t have to do the if at all:

    If your theme uses the post_class() function to give your posts classes, then it will hold a class for the category as well.

    You then can create different styling in your style.css for that specific category.


Viewing 1 replies (of 1 total)
  • The topic ‘Title depending on category’ is closed to new replies.