Social Icons

Pages

Saturday, 8 September 2012

Adding a "Home" link in the Navigation Bar of Magento store

Many Magento users wish to include a link in their main navigation that links back to the Home page of their site. Currently, this is not a feature Magento offers natively, but it can be added manually by using the following steps :


Note: There should be a CMS page for "Home Page" (name may be different) in CMS>pages in your admin panel.

Logic: 
1) Create Subcategory with name "Home".
2) We will than redirect its link to "Home Page" CMS page.
Here are the steps:

Step 1: Create a Subcategory

To add page links to the top navigation:

  1. From the Admin panel, select Catalog > Manage Categories.
  2. On the Categories Management page, click Add Subcategory. Then, do the following:
    1. Enter a Name for the link.
    2. Scroll down to the bottom of the form, and set Is Active to “Yes.”
    3. Set Include in Navigation Menu to “Yes.”
    4. In the URL Key field, type the name of your page link in lowercase letters with hyphens instead of spaces. (For example,Home Page becomes home-page.)
  3. In the upper-right, click the Save Category button.

Step 2: Create a Redirect

  1. From the Admin panel, select Catalog > URL Rewrite Management.
  2. In the text box at the top of the Request Path column, type the URL key for the subcategory, and click Search. When the the subcategory appears, click to open the record. 
  3. Copy the Target Path (whatever it may be) to the clipboard or write it down somewhere.
  4. Set Redirect to “Permanent (301),” and click Save.

    Now, you will be on URL Rewrite Management page again.
  5. In the upper-right corner of the URL Rewrite Management page, click the Add URL Rewrite button, and do the following:
    1. In the Create URL Rewrite list, select Custom. A form appears in the lower part of the page.
    2. In the ID Path text field, type the URL key of the page link. (For this example, home-page .)
    3. In the Request Path, either paste or type the Target Path value that you previously copied at point 3.
    4. In the Target Path field, type the URL for the Home Page. Here you can enter "../index.php" (without quotes).
    5. Set Redirect to “Permanent (301).”
  6. Click Save.
To confirm the change, visit any page of your store, and click the Home link in navigation bar to verify that it goes to the Home page.

If you still find some issue with this, then please let me know. I will help you out.

1 comment:

 

Contact Us

info@intellozene.com

Our Website:
www.intellozene.com