Don't want nav header on every page
Permalink
Hi. I hope somebody can help me. How can I set up my website so that only one of the pages does not have the nav header? I want to be able to direct certain clients to that one page but not have them navigate to other pages. The problem is that if I delete the nav header on that page it also deletes from every other page (since it's global) and I would like to keep it on the other pages.
I tried creating a new page type with that as the default but there isn't an option to make it nav header-less.
Thank you!
I tried creating a new page type with that as the default but there isn't an option to make it nav header-less.
Thank you!
- Create your new page type (as you've done)
- Duplicate in the your theme the file elements/header.php to something like elements/header_no_nav.php
- Edit this new header file, find the GlobalArea line for the nav and comment it and the corresponding display line out. (should be pretty obvious)
- In the file for your new page type, change the line:
$this->inc('elements/header.php');
to
$this->inc('elements/header_no_nav.php');
So what this does is make your page type pull in a slightly modified version of the header element file, which excludes the area for the nav.