Adding Links to Magento Menu Bar

Look for the top.phtml corresponding to your menu.
You can find the top.phtml files using SSH shell with this command.
Come to the app/ folder
find -name top.phtml
1../design/frontend/default/iphone/template/catalog/navigation/top.phtml
2../design/frontend/default/default/template/catalog/navigation/top.phtml
3../design/frontend/default/blank/template/catalog/navigation/top.phtml
4../design/frontend/default/modern/template/catalog/navigation/top.phtml
From above you should be able to locate your themes top.phtml
now edit the top.phtml
nano design/frontend/default/modern/template/catalog/navigation/top.phtml
01.

    02.
  • <a href=”getUrl(”)?>”>__(’Home’) ?>
  • 03.
    04.getStoreCategories() as $_category): ?>
    05.drawItem($_category) ?>
    06.
    07.
    08.

  • <a href=”getUrl(’about-magento-demo-store’)?>”>__(’About Us’) ?>
  • 09.
    10.

I have added two links “Home” and “About Us” in the above code (colored yellow)

Gửi phản hồi

Please log in using one of these methods to post your comment:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Log Out / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Log Out / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Log Out / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Log Out / Thay đổi )

Connecting to %s

%d bloggers like this: