Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #57100
    Riccardo
    Participant

    Hi,

    I would like to add a CSS style to the following div element, but only for a certain page (the blog page):
    <div class=”content-area” id=”primary”>

    do you have any suggestions for how I could achieve it?

    Many Thanks
    Riccardo

    #57155
    Sakin
    Keymaster

    @Riccardo: Yes, you can do that with your page ID. You can change that 8 to your page ID.

    .page-id-8 #primary { background-color: #000; }

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘change an element style only for a certain page’ is closed to new replies.