renier8 Posted May 9, 2014 Share Posted May 9, 2014 Hi Everyone, I've been looking around the forum but I can't seem to find a solution. I would like to try Adsense or something similar. I have various modules for banners and text additions to my landing page, but they mostly only allow for an image or a link or normal text. I need to insert Javascript code for Adsense. How do I do this and how do I manipulate exactly where it will appear on the home page ? Thank you in advance for your help. Renier Link to comment Share on other sites More sharing options...
SWcoins.com Posted May 9, 2014 Share Posted May 9, 2014 A quick down and dirty hack would be to add to the code to your theme's tpl file. Assuming you are using the default boot-strap theme. Display in your footer /webroot/yourstore/themes/default-bootstrap/footer.tpl Display in your header /webroot/yourstore/themes/default-bootstrap/header.tpl Display in your product page /webroot/yourstore/themes/default-bootstrap/product.tpl Display on all pages where you want (be careful with this one) /webroot/yourstore/themes/default-bootstrap/layout.tpl Link to comment Share on other sites More sharing options...
renier8 Posted May 9, 2014 Author Share Posted May 9, 2014 Thank you. I will give it a try over the weekend. Link to comment Share on other sites More sharing options...
vekia Posted May 9, 2014 Share Posted May 9, 2014 you can use module like htmlbox to place contents there where you want, you can also use other module like contentbox, or even default theme configurator module (if you use prestashop 1.6) Link to comment Share on other sites More sharing options...
renier8 Posted May 10, 2014 Author Share Posted May 10, 2014 Thanks Vekia, I used Contentbox. Works perfectly. Renier Link to comment Share on other sites More sharing options...
dtfmx Posted July 7, 2014 Share Posted July 7, 2014 you can use module like htmlbox to place contents there where you want, you can also use other module like contentbox, or even default theme configurator module (if you use prestashop 1.6) I tried to paste the code but don't see any spaces or ads <script type="text/javascript"><!-- google_ad_client = "ca-pub-9325087057698481"; /* RightAd1 */ google_ad_slot = "5294581457"; google_ad_width = 250; google_ad_height = 250; //--> </script> <script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Link to comment Share on other sites More sharing options...
Recommended Posts