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 :)

2 Comments

Leave a Reply

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