{"id":7734,"date":"2019-10-21T12:02:14","date_gmt":"2019-10-21T06:32:14","guid":{"rendered":"https:\/\/www.hiddentechies.com\/blog\/?p=7734"},"modified":"2020-10-08T19:41:09","modified_gmt":"2020-10-08T14:11:09","slug":"include-google-adsense-code-footer-prestashop","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/prestashop\/include-google-adsense-code-footer-prestashop\/","title":{"rendered":"How to include Google adsense code at footer in PrestaShop 1.7"},"content":{"rendered":"<p>How to include google adsense code at footer in prestashop 1.7<\/p>\n<p>In this post I am going to explain how to include google adsense code at footer in prestashop 1.7<\/p>\n<p>In order to add your google adsense code at footer, please open the below files from your current template\/theme.<\/p>\n<p>For example classic template footer.tpl file path.<\/p>\n<p><strong>[PrestaShop Root Directory]\/themes\/classic\/templates\/_partials\/footer.tpl<\/strong><\/p>\n<p>Please check your template name and find the footer.tpl file according to your template name.<\/p>\n<p>Now, at the end of current code in footer.tpl file include your adsense code like below.<\/p>\n<pre class=\"lang:default decode:true \">&lt;script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"&gt;&lt;\/script&gt;\r\n&lt;ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"xxxxxxxx\"\r\n     data-ad-slot=\"xxxxxxxx\"&gt;&lt;\/ins&gt;\r\n&lt;script&gt;\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n&lt;\/script&gt;<\/pre>\n<p>Here, replace &#8220;<strong>data-ad-client<\/strong>&#8221; with your publisher ID &amp; &#8220;<strong>data-ad-slot<\/strong>&#8221; with your ad unit&#8217;s ID.<\/p>\n<p>Save changes in this file, refresh your home page and check the changes:<\/p>\n<p>Thats it!<\/p>\n<div class=\"angwp_12010 _ning_cont _ning_hidden _ning_outer _align_center responsive\" data-size=\"custom\" data-bid=\"12010\" data-aid=\"0\" style=\"max-width:800px; width:100%;height:inherit;\"><div class=\"_ning_label _left\" style=\"\"><\/div><div class=\"_ning_inner\" style=\"\"><a href=\"https:\/\/www.hiddentechies.com\/blog?_dnlink=12010&t=1775841607\" class=\"strack_cli _ning_link\" target=\"_blank\">&nbsp;<\/a><div class=\"_ning_elmt\"><img decoding=\"async\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/angwp\/items\/12010\/Banner-2.png\" \/><\/div><\/div><\/div><div class=\"clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>How to include google adsense code at footer in prestashop 1.7 In this post I am going to explain how to include google adsense code at footer in prestashop 1.7 In order to add your google adsense code at footer, please open the below files from your current template\/theme. For example classic template footer.tpl file&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/prestashop\/include-google-adsense-code-footer-prestashop\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":1,"featured_media":7836,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[221,222,2139,2],"tags":[629,313,329],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/7734"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=7734"}],"version-history":[{"count":3,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/7734\/revisions"}],"predecessor-version":[{"id":7741,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/7734\/revisions\/7741"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/7836"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=7734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=7734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=7734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}