0

I have decided to sit down and build my first custom theme in Magento and I'm using this tutorial: http://net.tutsplus.com/tutorials/php/magento-for-designers-part-4/

However I cant for the life of me find a way to include horizontal navigation (Home | Shop | Contact etc.) along the top of my website!

I tried all the suggestions I could find including placing everything in the root category and enabling all cats in the navigation.. refreshing the cache etc.

I've been working at this for hours now and been searching everywhere for an answer. I've pretty much followed the tutorial step by step but I can't see any way to enable the Nav - can someone please point me in the right direction with this?

(I'm kind of assuming Magento have a way to do this to add categories automatically - I'm aware I could hard code the navigation bar but I'm trying to avoid this.)

4

1 回答 1

0

查看教程上的屏幕截图,它实际上并没有菜单。

我建议您查看 leveluptuts magento 主题教程,他们实际上采用了基本主题并将其操作为所需的主题。我认为这样你会有更多的运气,因为大多数模板和布局文件都已经构建好了。

http://leveluptuts.com/tutorials/magento-community-tutorials/25-theming-magento-1-intro-theming

对于顶部菜单,默认主题页面调用标题块的“header.phtml”模板(app/design/frontend/base/default/template/page/html/header.phtml),该模板又调用“topmenu” .phtml" 模板 (app/design/frontend/base/default/template/page/html/topmenu.phtml) 菜单代码所在的位置。

布局文件是 page.xml

希望这可以帮助!

于 2013-10-04T08:45:10.267 回答