Simple Fix to Remove Yellow Background/Box from Adsense Ads

Simple Fix to Remove Yellow Background/Box from Adsense Ads

Recently I created a responsive ad placement on one of my personal websites and guess what? When ads don’t fit in the placement I created, the background color of the rest of the rectangle box becomes yellow. After taking a look on what might have gone wrong I found out that a few lines of the CSS rule can fix the issue.

So, if you’re experiencing the same problem on your WordPress powered website, simply follow the steps below:

  • WordPress admin panel
  • Appearance
  • Customize

and then add the following CSS rule to “Additional CSS” box placed in the customizer:

ins.adsbygoogle { background: transparent !important; }

That’s all!

If you’re not running WordPress, then add the rule above to your style.css file. It should fix the problem :)

Leave a Reply

Get our Wordpress
freebies to your inbox