Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Remove toplinks on home page only
 
allvisionmedia
Jr. Member
 
Total Posts:  1
Joined:  2009-12-15
 

I am new to Magento and I am trying to find out how to remove the top links, My account, My Wishlist, My Cart, Login but only on the home page. Is there a way to just disable on the home page and leave for all other pages?

Any help would be greatly appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sorroman
Jr. Member
 
Total Posts:  1
Joined:  2010-01-05
 

Hi,

I’m also very interested on how to figure this.

And how to include some content on footer.phtml only in home page?
I’m familiarized with php and Wordpress and I wonder if there is something similar to if (is_home()) { // in Magento.

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
niidil
Jr. Member
 
Avatar
Total Posts:  3
Joined:  2008-11-03
Dnepropetrovsk, Ukraine
 

Hi guys,

It’s too easy

Go to Admin Panel->CMS->Manage Pages and edit Home page. Then select Custom Design tab and write in Layout Update XML field

<remove name="top.links"/>
 
Magento Community Magento Community
Magento Community
Magento Community
 
mmabardy
Member
 
Total Posts:  67
Joined:  2010-07-09
 

Great advice!  Does anyone know how to only remove the logo from only the homepage.  I tried this method for that and it did not work.  Any help is greatly appreciated.  Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
English87
Sr. Member
 
Total Posts:  80
Joined:  2009-08-12
 

@mmabardy

You can’t achieve this using layout updates, you will need to change the template located at app/design/frontend/INTERFACE/THEME/template/page/html/header.phtml:

<?php if ($this->getIsHomePage()):?>
        
<h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1>
<?php else:?>
        
<a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a>
<?php endif?>

You could change the above to:

<?php if (!$this->getIsHomePage()):?>
        
<h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1>
<?php endif?>
and this would only show the logo on pages other than the home page.

You may also want to change the h1 tag to something else like a h3.

Hope this helps

Jamie

 
Magento Community Magento Community
Magento Community
Magento Community
 
mmabardy
Member
 
Total Posts:  67
Joined:  2010-07-09
 

Great thank you.  That actually worked perfectly especially since I am using a different phtml file for my header on the home page.  Thanks again.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top