How to Hide Empty Space When No AdSense Ads are not Available

Samantha Ryals

New member
I have a blogging website, which has approve AdSense ads. But sometimes I have seen some post doesn't show AdSense ads. For that AdSense place remaining empty space.
Which make my website looking bad. How can I solve this problem.
 

SeoToolsbuz

New member
Yes, You can able to remove that blank space, when AdSense ads are not available or shows.
For this go to your Web site head section. That means inside of <head></head>.

Then add the below internal css inside your head section:
<style> ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; } </style>

That means your coding will be looks like below:
<head> [........ All of your meta tags and css links here .......] <style> ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; } </style> </head>

I have seen, this concept is working perfectly.
 

admin

Administrator
Staff member
Yes. It's working well.
 
Top