How to add adsense javascript to theme

Posted in: Newsmag
Post count: 95

Sorry for this silly question.

I want to add adsense javascript
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
to the theme custom javascipt.
So I can load this script for 1 time only, avoid loading for each ads.

But when I add this javascipt to custom javascipt section.
It will become
<script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script></scipt>
So it fail to load the script.
May I ask how to change this script for the theme?

Post count: 6600

Hi,

Please try to remove the script tags from here: http://screencast.com/t/cxhYAES7

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.