{"id":9483,"date":"2014-05-15T04:35:31","date_gmt":"2014-05-15T08:35:31","guid":{"rendered":"http:\/\/info.template-help.com\/?p=9483"},"modified":"2017-07-10T06:04:36","modified_gmt":"2017-07-10T10:04:36","slug":"prestashop-how-to-manage-header-links","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prestashop-how-to-manage-header-links.html","title":{"rendered":"PrestaShop 1.6.x. How to manage header and footer links"},"content":{"rendered":"<p><\/p>\r\n<p>The following tutorial is going to show you how to manage header and footer links in  PrestaShop 1.6.x templates.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=4XntL8EImSQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to manage header and footer links<\/a><\/p>\r\n<ol>\r\n<li>\r\n<p><strong>Header links<\/strong><\/p>\r\n<ol>\r\n<li>\r\n<p>The header links of the PrestaShop template are defined by the <strong>Permanent links block<\/strong> module.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-1-300x168.jpg\" alt=\"prestashop_1.6.x._how_to_manage_header_and_footer_links-1\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34849\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-1-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>If you want to add an element to it or remove it, you should edit the <strong>themes\/themeXXX\/modules\/blockpermanentlinks\/blockpermanentlinks-header.tpl<\/strong> file located in your PrestaShop installation on your hosting server.<\/p>\r\n<\/li>\r\n<li>\r\n<p> Open the file using any code editor. The menu is created as an unordered list. Each menu element is wrapped into <strong><em>&lt;li&gt; &lt;\/li&gt;<\/strong><\/em> tags.<\/p>\r\n<\/li>\r\n<li>\r\n<p>For example, the following lines of code represent the Sitemap menu element:<\/p>\r\n<pre class=\"brush:html\"> &lt;li id=&quot;header_link_sitemap&quot;&gt;&lt;a href=&quot;{$link-&gt;getPageLink('sitemap')|escape:'html'}&quot; title=&quot;{l s='sitemap' mod='blockpermanentlinks'}&quot;&gt;{l s='sitemap' mod='blockpermanentlinks'}&lt;\/a&gt;&lt;\/li&gt; <\/pre>\r\n<pre class=\"brush:html\"> a href=\"{$link->getPageLink('sitemap')|escape:'html'}\" - is the URL to the page  <\/pre>\r\n<pre class=\"brush:html\">{l s='sitemap' mod='blockpermanentlinks'} - is the code for displaying the button name <\/pre>\r\n<\/li>\r\n<li>\r\n<p> To add a link to the Best Sellers page (http:\/\/yourdomain.com\/best-sales.php), you should add the following line of code to the <strong>themes\/themeXXX\/modules\/blockpermanentlinks\/blockpermanentlinks-header.tpl<\/strong> file.<\/p>\r\n<pre class=\"brush:html\"> &lt;li id=&quot;header_link&quot;&gt; &lt;a href=&quot;{$link-&gt;getPageLink('best-sales.php')|escape:'html':'UTF-8'}&quot; title=&quot;{l s='best-sales' mod='blockpermanentlinks'}&quot;&gt; {l s='Best sales' mod='blockpermanentlinks'}&lt;\/a&gt;&lt;\/li&gt;<\/pre>\r\n<p class=\"info-box\">Note: If you want to change the name of the new button or add its translations, you can do it in <strong>Localization -> Translations<\/strong> menu of your back end. For more details, feel free to check the <a href=\"\/help\/prestashop-how-to-edit-menu-titles.html\">PrestaShop 1.6.x. How to edit menu titles<\/a> video tutorial.<\/p>\r\n<\/li>\r\n<li>\r\n<p>To add a link to some CMS page, you should get the link to the page first. Let\u2019s add the link to About Us page. It is http:\/\/templatetesting.com\/vincent\/index.php?id_cms=4&#038;controller=cms&#038;id_lang=1 .<\/p>\r\n<p> You should edit the <strong>themes\/themeXXX\/modules\/blockpermanentlinks\/blockpermanentlinks-header.tpl<\/strong> file and add the following line of code:<\/p>\r\n<pre class=\"brush:html\"> &lt;li&gt;&lt;a href=&quot;{$link-&gt;getCMSLink('4', 'CMSpage')}&quot; title=&quot;{l s='about-us' mod='blockpermanentlinks'}&quot;&gt;{l s='About Us' mod='blockpermanentlinks'}&lt;\/a&gt;&lt;\/li&gt; <\/pre>\r\n<p> <strong> $link->getCMSLink(\u20194\u2032, \u2018CMS page\u2019) <\/strong> means that we want to load the CMS page with ID 4. You can see that in the page URL. <strong>s=\u2019About Us\u2019<\/strong> is a button title.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Save the changes and check your website front end to see how you modified the header menu.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<\/li>\r\n<li>\r\n<p> <strong>Footer links<\/strong> <\/p>\r\n<ol>\r\n<li>\r\n<p> Let&#8217;s check what modules are used to display links in the footer of the site.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Log into the PrestaShop admin panel. Navigate to <strong>Modules -> Positions<\/strong> <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-2-300x168.jpg\" alt=\"prestashop_1.6.x._how_to_manage_header_and_footer_links-2\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34850\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-2-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-2.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>and look for the <strong>displayFooter<\/strong> hook.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Here we can see the modules representing our links blocks in the footer:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-3-300x168.jpg\" alt=\"prestashop_1.6.x._how_to_manage_header_and_footer_links-3\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34851\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-3-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-3-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-3.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-4-300x168.jpg\" alt=\"prestashop_1.6.x._how_to_manage_header_and_footer_links-4\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34852\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-4-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-4-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-4.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<ul class=\"list\">\r\n<li>\r\n<p><strong> Categories block<\/strong> &#8211; this module automatically shows the categories you have in <strong>Catalog->Categories<\/strong>. You can edit such options as category root, maximum depth, dynamic (animated) mode for sublevels, sort by, sort order and footer columns in the <strong>Modules->Modules-> Categories block ->Configure <\/strong> menu.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-5-300x168.jpg\" alt=\"prestashop_1.6.x._how_to_manage_header_and_footer_links-5\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34853\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-5-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-5-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-5.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-6-300x168.jpg\" alt=\"prestashop_1.6.x._how_to_manage_header_and_footer_links-6\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34854\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-6-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-6-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-6.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>CMS block<\/strong> &#8211; the block where you can add links to CMS pages, some store pages and custom links to external resources.<\/p>\r\n<p>To edit this module, navigate to the <strong>Modules->Modules-> CMS block ->Configure <\/strong> menu. There you will find the following options:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-7-300x168.jpg\" alt=\"prestashop_1.6.x._how_to_manage_header_and_footer_links-7\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34855\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-7-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-7-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-7.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<ul class=\"list\">\r\n<li>\r\n<p><strong>Display various links and information in the Footer<\/strong> &#8211; the option to enable\/disable a links block in the footer. <\/p>\r\n<\/li>\r\n<li>\r\n<p><strong> Footer links <\/strong> &#8211; choose links to CMS pages from <strong>Preferences->CMS<\/strong> you want to show.<\/p>\r\n<\/li>\r\n<li>\r\n<p><strong> Footer information <\/strong> &#8211; the field for custom text. You can use HTML tags there. If you want to add some custom link  (for instance, to Google), use the following code:<\/p>\r\n<pre class=\"brush:html\">  &lt;a target=&quot;_blank&quot; href=&quot;https:\/\/www.google.com\/&quot;&gt;Google&lt;\/a&gt;<\/pre>\r\n<p> Replace <strong>https:\/\/www.google.com\/<\/strong> with the required URL and use the title you need instead of <strong>Google<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>Various links in the footer<\/strong> &#8211; here you can see the option to enable\/disable links to &#8220;Our stores,&#8221; &#8220;Price drop,&#8221; &#8220;New products,&#8221; &#8220;Best sales,&#8221; &#8220;Contact us,&#8221; sitemap pages and copyright notification.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Click the <strong>Save<\/strong> button to save your information block configuration.<\/p>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>\r\n<p><strong>My account block for your website&#8217;s footer <\/strong> &#8211; displays a block with links relative to user accounts. You can enable or disable that block under <strong>Modules -> Modules<\/strong> in your PrestaShop admin panel.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-8.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-8-300x168.jpg\" alt=\"prestashop_1.6.x._how_to_manage_header_and_footer_links-8\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-34856\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-8-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-8-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/07\/prestashop_1.6.x._how_to_manage_header_and_footer_links-8.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>If you want to add\/remove links to it, you need to edit the <strong>\/themes\/themeXXX\/modules\/blockmyaccountfooter\/blockmyaccountfooter.tpl <\/strong>file on your FTP. The syntax is the same as in the <strong>themes\/themeXXX\/modules\/blockpermanentlinks\/blockpermanentlinks-header.tpl<\/strong> file.<\/p>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=4XntL8EImSQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to manage header and footer links<\/a><\/p>\r\nIf you already have an html based website with admin panel and need some other type of a template, review our <a href=\"https:\/\/www.templatemonster.com\/admin-templates.php\" title=\"Bootstrap Admin Themes\" target=\"_blank\">Bootstrap Admin Themes<\/a>.\r\n<!-- MailChimp for WordPress v4.1.5 - https:\/\/wordpress.org\/plugins\/mailchimp-for-wp\/ --><form id=\"mc4wp-form-1\" class=\"mc4wp-form mc4wp-form-81747 mc4wp-form-theme mc4wp-form-theme-green\" method=\"post\" data-id=\"81747\" data-name=\"PrestaShop Store Marketing - Beginner&#039;s Guide\" ><div class=\"mc4wp-form-fields\"><h4 >PrestaShop Store Marketing - Beginner's Guide [Free eBook]<\/h4>\r\n<p>\r\n\t<input type=\"email\" name=\"EMAIL\" placeholder=\"Your email address\" required \/>\r\n<\/p>\r\n\r\n<p>\r\n\t<input type=\"submit\" value=\"Download\" \/>\r\n<\/p><div style=\"display: none;\"><input type=\"text\" name=\"_mc4wp_honeypot\" value=\"\" tabindex=\"-1\" autocomplete=\"off\" \/><\/div><input type=\"hidden\" name=\"_mc4wp_timestamp\" value=\"1791727352\" \/><input type=\"hidden\" name=\"_mc4wp_form_id\" value=\"81747\" \/><input type=\"hidden\" name=\"_mc4wp_form_element_id\" value=\"mc4wp-form-1\" \/><\/div><div class=\"mc4wp-response\"><\/div><\/form><!-- \/ MailChimp for WordPress Plugin -->","protected":false},"excerpt":{"rendered":"<p>The following tutorial is going to show you how to manage header and footer links in  PrestaShop 1.6.x templates.<\/p>\n","protected":false},"author":49,"featured_media":20011,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[657,627,521,511,793,571,552],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/9483"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=9483"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/9483\/revisions"}],"predecessor-version":[{"id":81754,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/9483\/revisions\/81754"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/20011"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=9483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=9483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=9483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}