Navigation AmazonStyle menu: Adding siblings
Some customers need to add other links alongside “Departments” dropdown
Here’re simple steps to add your links there:
- Create CMS block
additional_navigation
and assign it to your theme. -
Add following content there (change links and titles):
<li class="level0 nav-li level-top"> <a class="nav-a level-top nav-a-level0" href="link1"> <span class="nav-span">Item1</span> </a> </li> <li class="level0 nav-li level-top"> <a class="nav-a level-top nav-a-level0" href="link2"> <span class="nav-span">Item2</span> </a> </li> <li class="level0 nav-li level-top"> <a class="nav-a level-top nav-a-level0" href="link3" > <span class="nav-span">Item3</span> </a> </li>
- Create custom.xml
-
Add following call of that block there:
<layout version="0.1.0"> <default> <reference name="navigationpro.top.additional"> <block type="cms/block" name="Promo_en"> <action method="setBlockId"><block_id>additional_navigation</block_id></action> </block> </reference> </default> </layout>
- Save and clear store cache.