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

how do i move toplinks to the header (modern theme)? 
 
REDMobile
Member
 
Avatar
Total Posts:  42
Joined:  2008-09-15
 

i moved the toplinks-bar from 1column.phtml to header.phtml
but it is not displaying. the welcome message is!

here is my header.phtml file:

<div class="header">
<h1 id="logo"><a href="<?php echo $this->getUrl('') ?>"><img src="<?php echo $this->getLogoSrc() ?>” alt="<?php echo $this->getLogoAlt() ?>"/></a></h1>
<img src="<?php echo $this->getSkinUrl('images/side_logo_promo.gif') ?>” alt="” class="side-logo-promo"/>


<div class="toplinks-bar">
<?php echo $this->getChildHtml('store_language') ?>
<?php echo $this->getLayout()->getBlock('header')->getWelcome()?>
toplinks
<?php echo $this->getChildHtml('topLinks') ?>
</div>
</div>

please advice how i can move toplinks to the header

thanks!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
kullysupply
Member
 
Avatar
Total Posts:  48
Joined:  2008-08-05
 

I haven’t tried this, so I could be way off here, but I think you have to add the top.links block to the header block in layout/page.xml

Change this:

<block type="page/html_header" name="header" as="header">
      <
block type="core/text_list" name="top.menu" as="topMenu"/>
</
block>
            
<
block type="page/template_links" name="top.links" as="topLinks"/>

To this:

<block type="page/html_header" name="header" as="header">
    <
block type="core/text_list" name="top.menu" as="topMenu"/>
    <
block type="page/template_links" name="top.links" as="topLinks"/>
</
block>

Let me know if this works!

 
Magento Community Magento Community
Magento Community
Magento Community
 
tperry
Member
 
Total Posts:  33
Joined:  2009-09-24
 

Worked for me smile

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