Magento. Adding page links to the navigation bar

  • 5 years-11 months

    Magento. Adding page links to the navigation bar

    • Category : magento
    • Viewed : 91 times
    • Posted On :
    • Posted by : Vikas

    This tutorial shows how to add page links to Magento navigation bar. In order to add the page links to the navigation bar, you should perform the following steps:

    Step 1: Adding the Subcategory
     
    1. Go to Catalog -> Manage Categories in your Magento Admin.

    2. Select ‘Default Category’ on the left, then click the ‘Add Subcategory’ button:
    3. Fill in the fields:
    4. – Specify your link Name.
    5. – Set ‘Is Active’ to Yes.
    6. – In the URL Key field type the name of your page link in lowercase letters with hyphens instead of spaces (f.e.’About Us’ becomes about-us):
    7. – Scroll down to the bottom of the form and set Include to Navigation Menu to ‘yes’.
    8. – Click ‘Save Category’ button:
     

    Step 2: Creating a Redirect
     

    1. Navigate to Catalog -> URL Rewrite Management.
    2. In the search box of the Request Path column, type in the URL key for the subcategory, and click Search.
    3. When the subcategory is located, click ‘Edit’ to open the record:
    4. NOTE: you will have records for each installed language. You can open the record for each language in the new browser tab.
    5. Open the notepad on your PC and save the following info: the ID path of your URL Rewrite and the Request path:
    6. Now we should delete the URL Rewrite for each language – click the Delete button at the top right.

    Step 3: Adding a new URL rewrite
     
    1. In Catalog -> URL Rewrite Management click Add URL Rewrite button at the top right.

    2. In the Create URL Rewrite field select ‘Custom’.

    3. Fill in the URL Rewrite Information form:

      – Add the ID path for the item which you have noted and saved in the notepad on step 2.2.

      – Add the Request Path for the item which you have noted and saved in the notepad on step 2.2.

      – To fill in the Target Path field, open any navigation menu on your site and copy-paste its url into the field, f.e: http://yourdomain.com/index.php/contacts/ (where ‘contacts’ is the Request Path for the Contact Us navigation page). Replace the Request Path with the new item Request Path which you have noted and saved in the notepad on step 2.2 of this tutorial.

    4. Set Redirect to ‘Permanent 301′.

    5. Click ‘save’ button at the top right:
       

    Step 4: Creating a page
     
    1. Go to CMS -> Pages.

    2. Click ‘Add New Page’.

    3. Specify the page title, the URL key for the page, select All Store Views:

    4. Switch to the Content Tab on the left. Put the html for your page content here.

    5. Switch to the Design Tab on the left. In the layout field choose the desired Page Layout:

    6. Click ‘Save Page’

    Step 5: Clearing your Magento Cache

    This is the end of the tutorial. You’ve learned how to add page links to Magento navigation bar

Report this or Ask your own question

Your Answer

When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.