I have Adsense ad units integrated into my blog’s header and post template files.
In the past, when I would create a post and use the preview function to see how it looked, Adsense ads did not appear at all in the preview.
But with subsequent updates to WordPress (it seems), this is no longer the case. The ads do show up in the preview version of the post.
Does anyone know how I can effectively prevent Adsense ads from showing up in post previews. Is there a snippet of code I can insert somewhere? Should my Robots.txt file be changed in some way?
I recently created a Robots.txt file (below) but am now getting some “failed crawl requests” show up in my account.
Any suggestions would be much appreciated.
- The topic ‘How to block Adsense from appearing on post preview’ is closed to new replies.