adsense yellow border

How to Remove the Yellow Background Behind AdSense Ads

If you’re using responsive adsense ads with certain wordpress themes you’ll notice a yellow background behind the ads.  It’s fairly easy to fix, the issue is the <ins> tag has a background of#fff9c0 in your theme’s css file.  The adsense code is also using the <ins> tag.  The adsense code also has a default class on it of “adsbygoogle” so i went ahead and added a background style of #fff on that and you can see it overriding in chrome inspector now.  Fixed.

adsense class

Solution CSS:

.adsbygoogle {
   background: #fff;

chrome developer view

Leave a Reply

Your email address will not be published. Required fields are marked *