{"id":18490,"date":"2012-05-25T06:04:51","date_gmt":"2012-05-25T10:04:51","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=18490"},"modified":"2016-02-22T05:11:54","modified_gmt":"2016-02-22T10:11:54","slug":"opencart-how-to-edit-footer-links-and-copyright-notification","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-how-to-edit-footer-links-and-copyright-notification.html","title":{"rendered":"OpenCart 1.5.x. How to edit footer links and copyright notification"},"content":{"rendered":"<p><\/p>\r\n<p>Login to your OpenCart admin panel. In your browser address bar type <strong>http:\/\/yourdomain.com\/admin<\/strong>. If you have installed your Opencart under a subfolder <strong>&#8220;store&#8221;<\/strong> for an example the above URL will change to <strong>http:\/\/yourdomain.com\/store\/admin<\/strong>. Login using your username and password.<\/p>\r\n<p>We will edit footer links and copyright notification.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/05\/opencart_footer_links_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/opencart_footer_links_1-300x116.jpg\" alt=\"\" title=\"opencart_footer_links_1\" width=\"300\" height=\"116\" class=\"alignnone size-medium wp-image-18491\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/opencart_footer_links_1-300x116.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/opencart_footer_links_1.jpg 985w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>The footer links and copyright notification should be edited in <strong>footer.tpl<\/strong> file which is located under <strong>\/catalog\/view\/theme\/themeXXX\/template\/common<\/strong> folder<\/p>\r\n<p>You should edit it using any PHP\/Code editor<\/p>\r\n<p><strong>First column<\/strong> is displaying <strong>Information\/Content<\/strong> pages<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div class=\"column col-1\"&gt;\r\n\t&lt;h3&gt;&lt;?php echo $text_information; ?&gt;&lt;\/h3&gt;\r\n    &lt;ul&gt;\r\n    \t    &lt;?php foreach ($informations as $information) { ?&gt;\r\n    \t\t&lt;li&gt;&lt;a href=\"&lt;?php echo $information['href']; ?&gt;\"&gt;&lt;?php echo $information['title']; ?&gt;&lt;\/a&gt;&lt;\/li&gt;\r\n            &lt;?php } ?&gt;\r\n   &lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<p>You can edit them in OpenCart admin panel. Navigate to <strong>Catalog > Information<\/strong>. Here one can edit <strong>Information\/Content<\/strong> pages.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2012\/05\/opencart_footer_links_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2012\/05\/opencart_footer_links_2-300x159.jpg\" alt=\"\" title=\"opencart_footer_links_2\" width=\"300\" height=\"159\" class=\"alignnone size-medium wp-image-18492\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/opencart_footer_links_2-300x159.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2012\/05\/opencart_footer_links_2.jpg 924w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p><strong>2nd, 3rd, 4th and copyright columns<\/strong> are displaying links which are defined in <strong>footer.tpl<\/strong> file<\/p>\r\n<p><strong>Second column code:<\/strong><\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div class=\"column col-2\"&gt;<br \/>\r\n  &lt;h3&gt;&lt;?php echo $text_service; ?&gt;&lt;\/h3&gt;<br \/>\r\n    &lt;ul&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $contact; ?&gt;\"&gt;&lt;?php echo $text_contact; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $return; ?&gt;\"&gt;&lt;?php echo $text_return; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $sitemap; ?&gt;\"&gt;&lt;?php echo $text_sitemap; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n    &lt;\/ul&gt;<br \/>\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<p><strong>Third column code:<\/strong><\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div class=\"column col-3\"&gt;<br \/>\r\n\t    &lt;h3&gt;&lt;?php echo $text_extra; ?&gt;&lt;\/h3&gt;<br \/>\r\n    &lt;ul&gt;<br \/>\r\n    \t&lt;li&gt;&lt;a href=\"&lt;?php echo $manufacturer; ?&gt;\"&gt;&lt;?php echo $text_manufacturer; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $voucher; ?&gt;\"&gt;&lt;?php echo $text_voucher; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $affiliate; ?&gt;\"&gt;&lt;?php echo $text_affiliate; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $special; ?&gt;\"&gt;&lt;?php echo $text_special; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n    &lt;\/ul&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<p><strong>Fourth column code:<\/strong><\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div class=\"column col-4\"&gt;<br \/>\r\n    &lt;h3&gt;&lt;?php echo $text_account; ?&gt;&lt;\/h3&gt;<br \/>\r\n    &lt;ul&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $account; ?&gt;\"&gt;&lt;?php echo $text_account; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $order; ?&gt;\"&gt;&lt;?php echo $text_order; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $wishlist; ?&gt;\"&gt;&lt;?php echo $text_wishlist; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $newsletter; ?&gt;\"&gt;&lt;?php echo $text_newsletter; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n    &lt;\/ul&gt;<br \/>\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<p><strong>Copyright column code:<\/strong><\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div id=\"powered\"&gt;&lt;?php echo $powered; ?&gt;&lt;\/div&gt;\r\n<\/pre>\r\n<p>$text_contact, $text_return, $text_sitemap, $text_manufacturer, $text_voucher, $text_affiliate, $text_special, $text_account, $text_order, $text_wishlist, $text_newsletter and $text_powered variables are displaying the text in footer menu and defined in language files.<\/p>\r\n<p>Store title that is displayed in footer copyright notification can be changed via the admin panel: <strong>System->Settings->Your Store Name->General tab->Store Name<\/strong><\/p>\r\n<p>Language file for the footer is called <strong>footer.php<\/strong> and is located in <strong>\/catalog\/language\/english\/common<\/strong> folder<\/p>\r\n<p>Edit the file using any PHP\/Code editor<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;?php<br \/>\r\n\/\/ Text<br \/>\r\n$_['text_information']  = 'Information';<br \/>\r\n$_['text_service']      = 'Customer Service';<br \/>\r\n$_['text_extra']        = 'Extras';<br \/>\r\n$_['text_contact']      = 'Contacts';<br \/>\r\n$_['text_return']       = 'Returns';<br \/>\r\n$_['text_sitemap']      = 'Site Map';<br \/>\r\n$_['text_manufacturer'] = 'Brands';<br \/>\r\n$_['text_voucher']      = 'Gift Vouchers';<br \/>\r\n$_['text_affiliate']    = 'Affiliates';<br \/>\r\n$_['text_special']      = 'Specials';<br \/>\r\n$_['text_account']      = 'My Account';<br \/>\r\n$_['text_order']        = 'Order History';<br \/>\r\n$_['text_wishlist']     = 'Wish List';<br \/>\r\n$_['text_newsletter']   = 'Newsletter';<br \/>\r\n$_['text_powered']      = 'Powered By &lt;a href=\"http:\/\/www.opencart.com\"&gt;OpenCart&lt;\/a&gt; %s &amp;copy; %s';<br \/>\r\n?&gt;\r\n<\/pre>\r\n<p>Here we can see all the variables which are used in <strong>footer.tpl<\/strong> with theirs values.<\/p>\r\n<p>To change <strong>Contacts<\/strong> to <strong>Contact Us<\/strong> one should edit the following line of code:<br \/>\r\n$_[&#8216;text_contact&#8217;]      = &#8216;Contacts&#8217;;<br \/>\r\nand change it to<br \/>\r\n$_[&#8216;text_contact&#8217;]      = &#8216;Contact Us&#8217;;\r\n<\/p>\r\n<p>To add external or internal link to the footer menu we should edit <strong>\/catalog\/view\/theme\/themeXXX\/template\/common\/footer.tpl<\/strong> file.<\/p>\r\n<p>E.g. to add link to http:\/\/google.com to second column we should locate the code for 2nd column in footer.tpl file<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;div class=\"column col-2\"&gt;<br \/>\r\n\t<span style=\"display:block; padding:0 0 0 25px;\">\r\n    &lt;h3&gt;&lt;?php echo $text_service; ?&gt;&lt;\/h3&gt;<br \/>\r\n    &lt;ul&gt;<br \/>\r\n    \t<span style=\"display:block; padding:0 0 0 25px;\">\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $contact; ?&gt;\"&gt;&lt;?php echo $text_contact; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $return; ?&gt;\"&gt;&lt;?php echo $text_return; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        &lt;li&gt;&lt;a href=\"&lt;?php echo $sitemap; ?&gt;\"&gt;&lt;?php echo $text_sitemap; ?&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\r\n        <\/span>\r\n    &lt;\/ul&gt;<br \/>\r\n    <\/span>\r\n&lt;\/div&gt;\r\n<\/pre>\r\n<p>Copy the last line of code:<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;li&gt;&lt;a href=\"&lt;?php echo $sitemap; ?&gt;\"&gt;&lt;?php echo $text_sitemap; ?&gt;&lt;\/a&gt;&lt;\/li&gt;\r\n<\/pre>\r\n<p>Add a new line and paste the code we have copied. Please edit it as follows:<\/p>\r\n<pre class=\"brush:php\">\r\n&lt;li&gt;&lt;a href=\"http:\/\/google.com\"&gt;Google&lt;\/a&gt;&lt;\/li&gt;\r\n<\/pre>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"\/help\/files\/OpenCart\/open_cart_footer_links.htm\" target=\"blank\">OpenCart. How to edit footer links and copyright notification<\/a><\/p>\r\n<p><\/p>\r\n<p><\/p>\r\n<p><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial is going to show you how to edit footer links and copyright notification.<\/p>\n","protected":false},"author":38,"featured_media":18512,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[599,657,511,1251,1157],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/18490"}],"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\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=18490"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/18490\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/18512"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=18490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=18490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=18490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}