Support Forum
so, using your second link/example, replace:
# ad code here
with
echo ' <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!– Responsive –> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxx" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> ';
and you should be good to go... remember, use the raw code button to copy so your dont get dorked up quote characters... and of course, replace your adsense publisher info back in there...
Visit Cruise Talk Central and Mr Papa's World
glad you got it working... we are constantly considering user ideas and yours (have had couple other requests for same) has been noted...
Visit Cruise Talk Central and Mr Papa's World
would it look like this?
echo 'if ( ! is_user_logged_in() ) {<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Responsive -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="xxxxxxxxxxxxx"
data-ad-slot="xxxxxxxx"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>';}
No....
if (!is_user_logged_in()) { echo ' <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!– Responsive –> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxx" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> '; }
Visit Cruise Talk Central and Mr Papa's World