Prestashop. How to manage header links

This tutorial will show you how to edit the top links in Prestashop store.
At the top of your store you may see two kinds of links: category links

and the custom links.

 

Category links

The category links could be modified through the Prestashop admin panel editing the product category titles.

 

Custom links

The custom links could be displayed using the custom block.
First of all you should define what module displays the links. To do this open Prestashop admin panel and go to Modules > Positions. Check modules for the Top position.  
Then open the Prestashop installation directory and go to modules directory. Open the module you want to edit.

 

For example:

Case1. Module Tm Header Links

Open modules\tmheaderlinks directory and edit tmheaderlinks.tpl file:

  <ul  id="header_links">
  <li><a  href="{$link->getPageLink('index.php')}"{if $page_name == 'index'}  class="active"{/if}>{l s='home'  mod='tmheaderlinks'}</a></li>
  <li><a  href="{$link->getPageLink('prices-drop.php')}"{if $page_name ==  'prices-drop'} class="active"{/if}>{l s='specials'  mod='tmheaderlinks'}</a></li>
  <li><a  href="{$link->getPageLink('sitemap.php')}"{if $page_name ==  'sitemap'} class="active"{/if}>{l s='sitemap'  mod='tmheaderlinks'}</a></li>
  <li><a  href="{$link->getPageLink('contact-form.php')}"{if $page_name ==  'contact-form'} class="active"{/if}>{l s='contact'  mod='tmheaderlinks'}</a></li>
  </ul>
  <!--  /Block permanent links module -->

Each button is a list item. It starts with <li> tag and is closed by the </li> tag.

To change the button link edit:

<a  href="{$link->getPageLink('index.php')}"

To change the button title edit :

l  s='home'
Prestashop. How to manage header links, 1.0 out of 5 based on 1 rating