Magento 1.9 – Moving Header Top Links Position

ce-1.9.2.2headermagento-1.9toplinks

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 of header so you you have to change it in app/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') ?>

Related Topic