- Web templates
- E-commerce Templates
- Loaded Commerce
- E-Commerce Comparison
- E-commerce Comparison: Payment and Shipping methods
- E-commerce templates compatibility table
- CMS & Blog Templates
- CMS Comparison
- CMS templates versions compatibility
- Facebook Templates
- Website Builders
Magento. How to edit header links
April 30, 2016
This tutorial will show you how to edit header links (top links) in Magento templates.Magento. How to edit header links
In case you just need to alter the Header Links Title, you can do so by using Magento Translate Inline tool. Login to your Magento Admin panel and go to System -> Configuration.
Scroll down and click the Developer menu item.
Click Translate Inline tab and select YES from the drop down Enabled for Frontend option.
Save Config and reload your site:
Now you can select any item to alter the text/title. Note that the actual URL/link will remain the same.
You might also need to add or remove items from the header section.
In order to remove or add header/top links, connect to your server using FTP client or access your file manager from the hosting control panel.
Go to the app/design/frontend/base/default/layout folder.
Download the following files:
You may need these files to perform the changes.
Now go to the theme folder, which is currently enabled on your site. app/design/frontend/tm_themes/themeXXX/layout. Open local.xml file using a text editor.
We are going to perform changes in the <default> section.
In this example, we will remove the Wishlist item. The following code should be used:
We need to place the code within top.links reference.
The final code will look like that:
<reference name="top.links"> <remove name="wishlist_link"/> </reference>
Save this file and upload to the server.
Now, let’s add one item for the Home page.
The following code should be used:
<action method="addLink" translate="label title" module="customer"> <label>Home</label> <url>home</url> <title>Home</title> <prepare/> <urlParams/> <position>10</position> </action>
where URL value is your actual URL/link.
Now let’s remove the cart link.
Open checkout.xml file which we’ve downloaded from the Default Magento theme.
Here we can find out the name of the block, which is checkout_cart_link.
Using the same method, we can remove the “cart” link from the header links section:
<remove name="checkout_cart_link" />
Now you know how to alter header/top links in Magento templates.
Thank you for reading this tutorial!
Feel free to check the detailed video tutorial below:Magento. How to edit header links
If your website already has an admin panel and you want to work on its design, review our Bootstrap Admin Themes.