Neat Theme without header image on selected pages
Permalink
Hi,
is it possible to use the neat theme and have a few pages without the site wide nav and the site wide logo? i wish to make a mobile app which links to pages of my website but do not wish for users to be able to navigate away from the selected pages. any suggestions would be gratefully received thank you
is it possible to use the neat theme and have a few pages without the site wide nav and the site wide logo? i wish to make a mobile app which links to pages of my website but do not wish for users to be able to navigate away from the selected pages. any suggestions would be gratefully received thank you
Thank you very much. I will give that a go later
Another method would be to create a new collection attribute with (for example) a handle of no_nav and a name of No Navigation using the checkbox type.
Then in your header.php file just before the closing </head> tag add this.
Then in your page properties custom attributes just select the no_nav attribute and tick it, save your page and your done.
You can add to the elements to be hidden by adding further declarations inside the style area.
Then in your header.php file just before the closing </head> tag add this.
<?php if ($c->getCollectionAttributeValue('no_nav')) { ?> <style>.siteheader{ display:none}</style> <?php } ?>
Then in your page properties custom attributes just select the no_nav attribute and tick it, save your page and your done.
You can add to the elements to be hidden by adding further declarations inside the style area.
The simplest way would be to copy an existing page type and save with a different name such as mobile_page.
Next at the top of this page change this code
to
Next copy your elements/header.php file and save as elements/header-two.php.
Finally, delete the parts of the new header-two.php file that you don't want to display.
Now you can use your new mobile-page type for your no-navigation pages.