http://www.trendingtop5.com
My Adsense in active. No warning.
But my ads are not showing in site.
(I have placed a header ad and an article top ad from theme panel).
Please help.
Thanks.
Hi
I’ve checked your site and found a js error in browser console. This error seams to be related with a javascript from google: http://screencast.com/t/KEK4Qg89j As can be seen in the screen, the theme render the ad-sense code but the problem is with the ad content. The theme can’t control the contend delivered by google, it only render the code and display the received informations.
Try to deactivate all plugins except Visual Composer, just to make sure that there is no conflict between google ads scripts and one of your installed plugins, clear all caches and test again.
Thanks!
Then the code is bad, your site wasn’t allowed or has been removed for bad content/warned about ad usage (check your adsense account for “messages”!), you have conflicting plugin, etc.
Likely good to go back to your AdSense account get the working code, make sure you’re only inserting the provided block of <script></script> from Google.
Don’t use third party plugin as that won’t help if the code itself doesn’t work.
No message or policy violation in my Adsense. Here is the code –
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Image only –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-753250##########”
data-ad-slot=”##########”
data-ad-format=”auto”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
An interesting observation – The header ad is showing properly in all Error 404 pages!
Hi
After checking your site again I’ve noticed that the the link google’s javascript is different then the one from the theme: http://screencast.com/t/7Y9mpIgRQSL The correct link appear only on 404 page, where the ads are displayed fine: http://screencast.com/t/RvFrMydUIA I am not sure why that link is different but you can try to deactivate all plugins except Visual composer, just to make sure that there is no conflict, clear all caches and test again.
Also you can try to make a new local install on your computer, with the latest version of WordPress, the current version of the theme available on themeforest, V 2.3.5, Visual Composer plugin and test the ads again.
Thanks!
Hi Andrei,
I have upgraded both wordpress and Newsmag. Deleted all plugins and rechecked.
Only one case where I did it successfully – Manually placing Sync google ad code in single.php
Check any random post.
But the default ADs blocks in Theme panel are not taking any code. So I am not able to place ad in home page/header/side bar. đ
You have rightly identified, Ad codes are changing in my site.
I am still doubting on W3 Total Cache Javascript minification.
Any suggestion please ?
Hi @tt5
If you made any changes in theme files or any other file related with WordPress try to revert them. Also for cache try to use WP Super Cache plugin which is tested and works fine with the theme. Here is our documentation regarding its setup: https://forum.tagdiv.com/cache-plugin-install-and-configure/
Thanks!