Jump to content

Insert script at footer


sim hanventure

Recommended Posts

hi, how to I insert the following script in the footer?

 

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- eSHOP-Yxin -->
<ins class="adsbygoogle"
     style="display:inline-block;width:200px;height:200px"
     data-ad-client="ca-pub-1119799714841178"
     data-ad-slot="5577865958"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
 
Thanks.
Link to comment
Share on other sites

add it to footer.tpl, but make sure you wrap it inside {literal} like this:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<!-- eSHOP-Yxin -->
<ins class="adsbygoogle"
     style="display:inline-block;width:200px;height:200px"
     data-ad-client="ca-pub-1119799714841178"
     data-ad-slot="5577865958"></ins>
<script>
{literal}
(adsbygoogle = window.adsbygoogle || []).push({});
{/literal}
</script>
 
Link to comment
Share on other sites

In this case, you should better use a module, but you need to know how to code. Or, you might find a shop-specific html module. My HTML BLock does the trick but it's not multistore, we can as well modify it if you want to spend a few bucks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...