Jump to content

Adsense and similar scripts


Recommended Posts

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

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

  • 1 month later...

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

×
×
  • Create New...