Home page type no site name, nav / Conditional areas in Header
Permalink
My client really wants a "landing page" - a home page that includes a slideshow, but no site name, header top or nav areas. In the current theme I am using, some of these header areas are hard-coded, some are editable. I simply don't want them to appear on the "home" page type.
A suggestion I received was the following:
I wrapped the site name & header area, and separately the nav area with this code. It removed the areas on all page types, however.
As this is not specific to the theme I thought it would be interesting to ask the main forum if anyone has faced this issue and the best way to solve it.
Also if this has already been addressed somewhere, I'd appreciate guidance.
The site I am working on is temporarily here:
http://www.stagingseydoux2.ch/
It could also be, that the best way to address this would be to simply make everything editable and not add them to the home page.
I appreciate any suggestions.
A suggestion I received was the following:
<?php if (!$c->getCollectionTypeHandle() == 'home') { ?> (stuff) <?php } ?>
I wrapped the site name & header area, and separately the nav area with this code. It removed the areas on all page types, however.
As this is not specific to the theme I thought it would be interesting to ask the main forum if anyone has faced this issue and the best way to solve it.
Also if this has already been addressed somewhere, I'd appreciate guidance.
The site I am working on is temporarily here:
http://www.stagingseydoux2.ch/
It could also be, that the best way to address this would be to simply make everything editable and not add them to the home page.
I appreciate any suggestions.
I copied the theme, renamed it and made a new description.txt and thumbnail.png. Eliminated all extraneous page types except default.php and home.php.
Cut the "logo" and "header" areas, and "nav " (important - leave "container"!) out of header.php.
Loaded it up, changed the home page theme to the new alternative and "bingo".
If anyone knows why this is a bad solution, please let me know.