Google Adsense empt...
 
Notifications
Clear all

[Solved] Google Adsense empty space

5 Posts
2 Users
1 Reactions
64 Views
(@castro)
Posts: 3
Active Member
Topic starter
 

Hello.

I'm using Adsense for my Osclass site. Some times there is no ad displayed, for reason related to zero advertizers for those pages.

But the space is there, empty/white. Is there anyway to not show empty space if there is no ad displayed?

Thank you

 
Posted : January 8, 2024 09:39
Topic Tags
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

Hi and Welcome.

Try this css:

<style>
ins.adsbygoogle[data-ad-status="unfilled"] {
display: none !important;
}
</style>

Depending on your version of Osclass, put that in the extra css space of the theme or "Osclass Theme Customization:Your CSS" menu option.

Just check if it works right and doesn't create any issues.

 
Posted : January 8, 2024 09:55
Castro reacted
(@castro)
Posts: 3
Active Member
Topic starter
 

Thank you. What could be wrong? What shall i check?

 
Posted : January 8, 2024 10:07
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

Posted by: @castro

Thank you. What could be wrong? What shall i check?

Well, are ads displayed? All the pages seem ok?

Press F12 and check your browser console for errors ...

 

 
Posted : January 8, 2024 10:28
(@castro)
Posts: 3
Active Member
Topic starter
 

All seem ok, i inserted the style in the Theme Customization.

Many thanks

 
Posted : January 8, 2024 15:44