{"id":37344,"date":"2014-11-05T09:44:52","date_gmt":"2014-11-05T14:44:52","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=37344"},"modified":"2016-03-16T06:21:34","modified_gmt":"2016-03-16T10:21:34","slug":"prestashop-1-6-x-how-to-add-cms-page-with-link-in-headerfooter-menu","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prestashop-1-6-x-how-to-add-cms-page-with-link-in-headerfooter-menu.html","title":{"rendered":"PrestaShop 1.6.x. How to add CMS page with link in header\/footer menu"},"content":{"rendered":"<p><\/p>\r\n<p>The following tutorial is going to show you how to add CMS page with link in header\/footer menu.<\/p>\r\n<h3 class=\"custom\">Adding CMS page<\/h3>\r\n<ol>\r\n<li>\r\n<p>Log into your PrestaShop admin panel.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to <strong>Preferences -> CMS<\/strong>. There you can find all the CMS pages which are created in your PrestaShop.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Click Add new button to add a new CMS page:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links1-300x164.jpg\" alt=\"prestashop_header_footer_links1\" width=\"300\" height=\"164\" class=\"aligncenter size-medium wp-image-37345\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links1-300x164.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links1-150x82.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links1.jpg 991w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Fill in all the required fields, enable the page and save the changes:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links2-300x164.jpg\" alt=\"prestashop_header_footer_links2\" width=\"300\" height=\"164\" class=\"aligncenter size-medium wp-image-37346\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links2-300x164.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links2-150x82.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links2.jpg 991w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Remember the CMS page ID (displayed on the first column in the list). You will need it later:<\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to <strong>Modules -> Positions<\/strong> in your PrestaShop admin panel.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Check which module is displaying the top menu in your template. Most likely it is inserted to <strong>displayTop<\/strong>position. The module name is <strong>Permanent links block<\/strong> in our case:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links3-300x164.jpg\" alt=\"prestashop_header_footer_links3\" width=\"300\" height=\"164\" class=\"aligncenter size-medium wp-image-37347\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links3-300x164.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links3-150x82.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links3.jpg 991w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<h3 class=\"custom\">Adding link to header menu<\/h3>\r\n<ol>\r\n<li>\r\n<p>Connect via FTP to your domain (please contact your hosting provider if you do not know how to do it).<\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to <strong>themes\/themeXXX\/modules\/blockpermanentlinks folder<\/strong> (where themeXXX is your theme name) and edit blockpermanentlinks-header.tpl file using any code\/text editor.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Each list element in the code represents one menu element. E.g.<\/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<\/li>\r\n<li>\r\n<p>Copy that line and insert it on the new line, right next the one you have copied. Change it to:<\/p>\r\n<pre class=\"brush:html\">&lt;li&gt;&lt;a href=&quot;{$link-&gt;getCMSLink('8', 'new')|escape:'html'}&quot; title=&quot;{l s='new' mod='blockpermanentlinks'}&quot;&gt;{l s='new' mod='blockpermanentlinks'}&lt;\/a&gt;&lt;\/li&gt;<\/pre>\r\n<\/li>\r\n<li>\r\n<p>Save the file. We have added link to CMS page to the top menu.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<h3 class=\"custom\">Adding link to footer menu<\/h3>\r\n<ol>\r\n<li>\r\n<p>Now we will add the same link to the Footer menu.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to <strong>Modules -> Modules<\/strong> and search for <strong>&#8220;CMS Block&#8221;<\/strong> module.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Click on <strong>Configure<\/strong> button:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links4-300x164.jpg\" alt=\"prestashop_header_footer_links4\" width=\"300\" height=\"164\" class=\"aligncenter size-medium wp-image-37348\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links4-300x164.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links4-150x82.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links4.jpg 991w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>In <strong>Configuration of the various links in the footer<\/strong> section, click to enable your newly added page:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links5-300x164.jpg\" alt=\"prestashop_header_footer_links5\" width=\"300\" height=\"164\" class=\"aligncenter size-medium wp-image-37349\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links5-300x164.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links5-150x82.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/09\/prestashop_header_footer_links5.jpg 991w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Save your settings by clicking on the <strong>save<\/strong> button.<\/p>\r\n<\/li>\r\n<li>\r\n<p>We have added link to CMS page to the footer menu.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Thank you for watching this video tutorial. Now you know how to to add CMS page with link in header and\/or footer menu.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=PJNRasQHILQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to add CMS page with link in header\/footer menu<\/a><br \/>\r\n<\/p>\r\n<p><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>The following tutorial is going to show you how to add CMS page with link in header\/footer menu.<\/p>\n","protected":false},"author":12,"featured_media":40040,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[657,627,571,572,552],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/37344"}],"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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=37344"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/37344\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/40040"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=37344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=37344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=37344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}