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
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
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
Great, Thanks! I’ll try it right away!
Antonio
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; }
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
Thank you so much! You are a star!
Antonio