Remove auto-nav on individual pages

Permalink 1 user found helpful
I need to be able to have some pages on my site not show the auto-nav block. The rest of the site would, of course, continue to have the auto-displayed.

Anyone know how I can do this? Is setting up a subdomain and copying over all the concrete files to the sub-domain and then modifying the header on the sub-domain the route to take? Or is there another way to handle th9is?

DynamicFred
 
Kurtopsy replied on at Permalink Reply
Kurtopsy
Off the top of my head, my thought is you could make another page type that doesn't have the global auto nav block. Then the pages you don't want to have the auto nav, just assign the new page type.
DynamicFred replied on at Permalink Reply
DynamicFred
Thanks Kurt.

I thought of that as well. How would I do that? If I make a custom page that includes the header that doesn't include the auto-nav, will the header in this file take precedence over the stock header? Or will the stock header be added above the customized header.

Another thought I had was to use a sub-domain then include some code in the stock header that would say something like "If this page is in the sub-domain, don't include the auto-nav." I guess something could be written in the stock header to say the same but instead of the sub-domain, have the script say that if the page type is X then don't include the auto-nav.

If you think this would work, do you have any idea how to code it?

Fred
Kurtopsy replied on at Permalink Reply
Kurtopsy
Sorry about that. I had it all in my head, but it didn't all make it into my comment. I would copy the existing header, remove the area that has the auto nav, and name the new header something else. Save it in the elements folder.

Next, make a new page type with the code from the existing page type, but change the header file name at the top where it calls the header. Save it with your other page types, and upload it in the dashboard.

Then any page with your new page type will not have the autonav.
DynamicFred replied on at Permalink Reply
DynamicFred
Thanks Kurt! That did it. I really appreciate your help.