× Discussion about "Cosmetics" Joomla/VirtueMart template.

Remove the ENTIRE header from the home page

More
5 years 2 months ago #39250 by adversace2
I have a simple image I have for my home page (I left it in the rotator), but I changed the page color to white, but I cannot get rid of the header on the home page (ONLY the home page)

dcakesaddiction.com/

I need the header for the secondary pages.
Please help.

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #39310 by milos
You should open file /templates/hot_cosmetics/index.php in your code editor. Then locate this part of code:
<div class="header_wrap">
    	<div class="wrap">
            <div class="logo">
            	<jdoc:include type="modules" name="logo" style="xhtml" />
            </div>
            <div class="shopping_cart">
            	<jdoc:include type="modules" name="top" style="xhtml" />
            </div>
        </div>
    </div>
    <div class="topmenu_wrap">
    	<div class="wrap">
        	<div class="topmenu">
        		<jdoc:include type="modules" name="user3" style="none" />
            </div>
            <div class="search_box">
            	<jdoc:include type="modules" name="user4" style="none" />
            </div>
        </div>
    </div>

You should add this ABOVE this part:
<?php 
$menu = JFactory::getApplication()->getMenu();
$lang =& JFactory::getLanguage();
if($menu->getActive() != $menu->getDefault($lang->getTag())) { ?>

and add this BELOW this part:
<?php } ?>

This will disable header_wrap and topmenu_wrap containters only from the home page.

Thanks
Last edit: 5 years 2 months ago by milos.
The following user(s) said Thank You: adversace2

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.119 seconds