How to remove the yellow background behind Google AdSense ads

There are two primary reasons why you might see a yellow background behind Google AdSense advertisements on your website. You might notice the yellow color before and after advertisements load on your website. For one, many WordPress themes automatically have the <ins> tag (also known as the ins attribute) set to yellow in your CSS style sheetThe other reason could be that the <ins> tag is set around a Google advertisement like: <ins>Advertisement Script</ins>. The ins attribute/tag defines additional text to a document and is commonly used to markup updates and modifications made to a website. The yellow hex color used is #fff9c0 or #ff9 depending on your WordPress theme.

How to remove the Google AdSense yellow background

1. Open your style.css file and search for the color: #fff9c0 or #ff9. You can find your CSS style sheet for WordPress websites at this path: Appearance > Editor and you can type Ctrl+F to enable a search field in your browser.

2. If there is a result matching #fff9c0 or #ff9 on your CSS style sheet you will want to change it to your website’s background color (such as #ffffff for white, #000000 for black, or rgba(25,25,25,0) for transparent). You can also delete the color from your CSS file entirely.

Here are a few examples of what the code you’re looking for might look like:

ins {
 background: #fff9c0;
 text-decoration: none;
}
ins, .ins {
background-color: #ff9;
color: #000;
text-decoration: none;
ins { background: #ff9; color: #000; text-decoration: none; }

Sean Doyle

Sean is a distinguished tech author and entrepreneur with over 20 years of extensive experience in cybersecurity, privacy, malware, Google Analytics, online marketing, and various other tech domains. His expertise and contributions to the industry have been recognized in numerous esteemed publications. Sean is widely acclaimed for his sharp intellect and innovative insights, solidifying his reputation as a leading figure in the tech community. His work not only advances the field but also helps businesses and individuals navigate the complexities of the digital world.

More Reading

Post navigation

12 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.