Can you please post a link to your site? It’s impossible to tell what’s going on just from looking at an image of a yellow block.
Thread Starter
Mankov
(@mankov)
it is responsive adsense:
behandeln.org
There’s a CSS rule in the TwentyFifteen theme for ins elements which sets the background to yellow. You can disable it for AdSense by adding this rule to the end of your child theme’s style.css file:
ins.adsbygoogle {
background-color: transparent;
}
Thread Starter
Mankov
(@mankov)
Ok, thank you.
I have already found a second solution. Hope this is ok, too.
Added this code in my child. Does this code needs an !important ?
mark,
ins {
background-color: #ffffff;
text-decoration: none;
}
Does the child theme needs an !important ?
You should avoid the use of !important when possible. When I see people using !important, it’s usually because they don’t understand CSS specificity. Using !important can make your CSS more difficult to modify in the future, so avoid it unless you need to override inline styles or if you are trying to override a previous instance of !important. As long as your new rule in your child theme has the same selector as the rule in the parent theme, then your rule will override the parent theme’s rule, because that’s the way that CSS works. When rules have the same specificity, the rule that comes later will take precedence, and your child theme’s CSS comes after the parent theme’s CSS.
Thread Starter
Mankov
(@mankov)
All right, thank you very much for your efforts.