• Hi,

    I set my website with this CSS

    .entry-title {display:none}
    #content.container {min-height:400px;background-color:#ffffff;}

    I just want to exclude the homepage from the color rule, I thought to do this :

    .page-id-547 {background-color:#222222 !important;}

    Unfortunately it doesn’t work, someone could explain what I did wrong (I am newbie in CSS of course !)

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hector7

    (@hector7)

    I suppose I need to specify #content.container somewhere with the page id, but where and how ?

    It’s possible to “nest” CSS:

    .page-id-547 #content.container { background-color: #222; }

    This code means any element with the ID “content” and the class “container” which is contained within any element with the class “page-id-547”.

    If that doesn’t work, can you post a link to your site?

    Thread Starter hector7

    (@hector7)

    Thank you so much, it works !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude a page from CSS’ is closed to new replies.