• Resolved Eric Larsson

    (@master1234321)


    If i have this css in my custom css, then what do i do if I want to change just one specific page’s css in wordpress instead of all page headers?

    .page-header {
    background-color: #FFFFFF !important;
    text-align: center !important;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you look in the opening <body> tag of your sites HTML code (you’ll need to look in the browser) you should see a class set in that element that is ‘page-id-X’ where X is the ID if that page. That will help you to target that single page.

    As an example, if the pages ID is 4 then you’d use this:

    page-id-4 .page-header {
        background-color: #FFFFFF
        text-align: center;
    }
    Thread Starter Eric Larsson

    (@master1234321)

    Thanks! That solved it

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I specify to change just one page title in css instead of all of them?’ is closed to new replies.