Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Need code for zigzaig menu or organic menu in magento ?

user-image
Question added by Atif Aqeel , Founder And Director , Xesense
Date Posted: 2013/10/12

yes you need a lil code .

  1. create your app/code/local/Mage/Page/Block/Html/Topmenu/Custom.php
  2. put inside class Mage_Page_Block_Html_Topmenu_Custom extends Mage_Page_Block_Html_Topmenu
  3. copy the _getHtml() method from app/code/code/Mage/Page/Block/Html/Topmenu.php and customize it as needed
  4. edit your app/design/frontend/your_theme/default/layout/page.xml and replace <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/> with<block type="page/html_topmenu_custom" name="catalog.topnav" template="page/html/topmenu.phtml"/>
  5. profit!

Muhammad Arslan Hasnat
by Muhammad Arslan Hasnat , graphic Designer / web Developer , kamboh International

yes you need a lil code to modify menu accordingly

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.