Disable Elemental Navigation for single page
Permalink
I am trying to create a landing page where the visitor does not have access to the navigation menu. For most of my website I want them to have the nav menu, but for a handful of landing pages I do not. How do I achieve this? I am using the Elemental theme.
Thanks.
Thanks.
An easy option (that doesn't actually answer the question) is to make the pages that should appear in the menu visible only to logged-in members. Visitors won't be able to see those pages, and they won't appear in the menu for them (I think!). This isn't exactly what you asked for, but it might work for you, and is easy to do.
You might be able to hide the auto-nav by using some custom CSS/js on relevant pages. Yuck.
A less kludgy answer would be to create a new page template that doesn't have the nav, and use that for the non-nav pages. Obviously you could swipe a lot of the code from Elemental, but you'd still need to cut (out) some code yourself.
You might be able to hide the auto-nav by using some custom CSS/js on relevant pages. Yuck.
A less kludgy answer would be to create a new page template that doesn't have the nav, and use that for the non-nav pages. Obviously you could swipe a lot of the code from Elemental, but you'd still need to cut (out) some code yourself.
By default, your theme view.php will be used to display single pages. If you want a custom view for a single page, you can create one by making a single page view template. The name of the single page view template would be the same as your single page view. If your single page view was named "landing_page.php", then your single page view template would be named "landing_page.php".
When using your theme view.php to display a single page, echo $innerContent; will display the single page view. This changes when using a single page view template, you display content the same way as you did in your single page view file - it looks to work like an override of the single page view.
Adding Content to the Single Page View Template
https://documentation.concrete5.org/developers/working-with-pages/si...