create page type icon

Permalink
How do i create a page type icon, so i can exclude the header nav from the icon so then i can use that icon for my new page type??

problem i keep on having, is that every page type icon on my theme has the sitewide header nav, and of course when i remove it from any of these page types it removes the header nav from every page, and i do not want this to happen, only remove from this new page type.

I think that is my problem,so need to create a page type icon with no header nav right from the get go

any ideas??
thanks
Blackadder

blackadder
 
jero replied on at Permalink Reply
jero
The icon has absolutely no bearing on the layout of the page. What you're going to need to do is add a new template to your theme that doesn't include the Header Nav area. Make sure to go to themes and "Inspect" your theme, which will create the new page type.

Most probably your theme has an elements/header.php file, which all of your templates will use. Either you can create a new template and copy in elements/header.php (rather than including it) and efit out the Header Nav area, or modify the elements/header.php like this#

if ($c->getCollectionTypeHandle() != 'my_new_page_type_handle'){
    $nav = new GlobalArea('Header Nav');
    $nav->display($c);
}

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.