Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #368042

    Hi, I have a couple custom temples & corresponding css style sheets in the child theme I created. I was wondering what class I can add to my css that “hides header on this page” rather than going in to every page and selecting this option. When I created the page templates, they still use the same header and footer, so I would just like to hide the whole header via css. Thank you!

    #368257

    Hi tvlleaders!

    You can identyfy the pages with the unique ID and then use the following code to hide the header, replace the ID with your values:

    
    .page-id-2503 #header,
    .page-id-2504 #header {
        display: none !important;
    }
    .page-id-2503 #main
    .page-id-2504 #main {
        padding-top: 0px !important;
    }
    
    

    Cheers!
    Günter

    #369339

    perfect thank you!

    #369377

    Hey!

    Glad I could help you.
    Enjoy the theme.

    Regards,
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘question regarding: "Hide Header on this page"’ is closed to new replies.