Change header colour based on category

  • Author
    Posts
  • #3374546

    Hi!

    I am trying to change the colours of my widget titles and main header, for just one category (and then all posts belonging to that category of course).

    When I use custom CSS and this code (to change only for ONE post), it works:

    
    .postid-2485
    #main-header {
    background-color: #c08976;
    }
    

    This however, does not work. Any ideas?

    
    .category-training
    #main-header {
    background-color: #c08976;
    }
    

    Best regards
    Tom

    #3374628

    gracema2002
    Member

    Hi Tom,

    What’s the URL of your site so we can assist you further.

    When it comes to adding custom CSS, this is only possible on a paid plan, even then, there’s a difference in how much CSS can be added depending on the type of Plan, on the Personal Plan, for example, you can add some basic CSS, you’ll need to have Premium or Business Plans to do more advanced things.

    https://wordpress.com/pricing/

You must be logged in to reply to this topic.