That's the one, I was on my iPad, so couldn't elaborate much more at the time. Good to see you got it sorted though. 👍
Adsense problem
-
Nodebb doesnt reload pages so i guess thats a problem for adsense
-
-
Widget:
<div id='div-gpt-ad-xxxxxxxxxxx'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-xxxxxxxxxxxxxx); }); </script> </div> <br> </center>
head code:
<script type='text/javascript'> var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); </script> <script type='text/javascript'> googletag.cmd.push(function() { var mappingLeaderboard = googletag.sizeMapping(). addSize([1024, 768 ], [728, 90]). addSize([500, 500 ], [468, 60]). addSize([1, 1 ], [320, 50]). build(); googletag.defineSlot('/xx/xx', [[320, 50], [468, 60], [728, 90]], 'div-gpt-ad-xxxxxx').defineSizeMapping(mappingLeaderboard).addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); </script>