I am trying to change the position of top links. I want to move top.menu
before top.links
.
In my page.xml
following code is given:
<block type="page/html_header" name="header" as="header">
<block type="page/template_links" name="top.links" as="topLinks"/>
<block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
<label>Navigation Bar</label>
<block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
</block>
<block type="page/html_welcome" name="welcome" as="welcome"/>
</block>
And I have changed it as following to move top.menu
above:
<block type="page/html_header" name="header" as="header">
<block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
<label>Navigation Bar</label>
<block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
</block>
<block type="page/template_links" name="top.links" as="topLinks"/>
<block type="page/html_welcome" name="welcome" as="welcome"/>
</block>
Best Answer
These are
child block
ofheader
so you you have to change it inapp/design/frontend/namespace/theme/template/page/html/header.php
change position of this child block<?php echo $this->getChildHtml('topMenu') ?>
move before<?php echo $this->getChildHtml('topLinks') ?>