Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #243843

    Hi guys,

    is it possible to prevent the header and attached menu from showing up on specific pages within the site, while preserving it on all the others?

    It would be a very useful feature for some pages on my site. Maybe some quick CSS with the page ID would do?

    Thanks,

    Antonio

    #243857

    Hey Antonio!

    You can use following code to remove header from your FAQ page

    .page-id-2402 #header { display: none; }
    .page-id-2402 .fixed_header.social_header #main {
    padding-top: 0; }

    You can right click on Chrome or Firefox to inspect elements to find page ID http://i.imgur.com/HyPTCRg.jpg
    You can simply change the page id for other pages

    Regards,
    Yigit

    • This reply was modified 10 years ago by Yigit.
    #243860

    Hey Yigit,

    thanks for the super quick reply!

    I see in your example there are two different page ids (2402 and 2401). Which one should I look at? I suspect I only have to change one.

    Antonio

    #243863

    Hi!

    I fixed it, page id of your FAQ page is 2402. Please try it now

    Regards,
    Yigit

    #243866

    Great, Thanks! I’ll try it right away!

    Antonio

    #243869

    Hi!

    Sure, we are waiting to hear from you!

    Best regards,
    Yigit

    #243883

    Working great, Yigit!

    Do I have to repeat the code within the quick CSS for every page I want the header to disappear or can I more easily add all the pages id in the following just once?

    .page-id-2402 #header { display: none; }
    .page-id-2402 .fixed_header.social_header #main {
    padding-top: 0; }

    #243885

    Hey!

    You can do as following

    .page-id-2402 #header, .page-id-2403 #header, .page-id-2404 #header  { display: none; }
    .page-id-2402 .fixed_header.social_header #main, .page-id-2403 .fixed_header.social_header #main, .page-id-2404 .fixed_header.social_header #main {
    padding-top: 0; }

    Regards,
    Yigit

    #243887

    Thank you so much! You are a star!

    Antonio

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Don't show Header and menu on specific page’ is closed to new replies.