• Resolved jasminecross11

    (@jasminecross11)


    Hi,

    I’d like to have a header image on my ‘about’ page. The same header that you can set in the customize section, but I don’t want it to appear on any of the other pages. Is this possible? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @jasminecross11!

    It is possible, yes. We’ll use a bit of CSS, and you’ll want to get the ID number of your About page.

    To get the ID number, open the Pages menu of your dashboard, and hover over the About page’s Edit link.

    Look down in the bottom corner of your browser, where it shows you where that link leads. Inside that address, you’ll see an ID number ??

    Swap your ID out for the 5 in this snippet:

    body:not(.page-id-5) .custom-header {
        display: none;
    }

    That should hide the header image everywhere except on your about page.

    To add this CSS you can use the Additional CSS panel in the Customizer (assuming you’re running at least WordPress 4.7) or with something like the Jetpack Plugin using the Custom CSS Module.

    Thread Starter jasminecross11

    (@jasminecross11)

    Worked like a charm! Thanks Chad

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘header on one page only’ is closed to new replies.