Archived topic
Ads Placement in Sidebar - Clear Empty Space
7 replies · Started by Sibi Paul on January 11, 2020
Sir,
Kindly Check my site, there you can see an ad placed at right side bar...
Adsense script is showing after the layout.
if I increase the sidebar width to 40 , then, its OK, but the content area width reduces very low...
Here I attached an image, check it... there is an empty white space I marked with black circle,
how to align my ads to that space... so it will fit in the exact available space....
Hi there,
Try this CSS:
.inside-right-sidebar #custom_html-5,
.inside-right-sidebar #custom_html-6 {
padding: 0;
}
can you please check my site again.
the second ad unit at the sidebar shows same error...
but the first one is now fixed.
Edited the CSS above:
https://generatepress.com/forums/topic/ads-placement-in-sidebar-clear-empty-space/#post-1129042
You'd need to keep expanding the CSS if you add more ads. You can find the ID by using browser inspector:
https://www.screencast.com/t/oGf4MWBUlfS
that's nice job...
fixed,
thank you.
No problem :)
check my side bar,
first ad is a responsive display ad
second one is 300 x 600 fixed display ad
now, you can see a small layout error...
i try to change the value 0.2 but that makes the ads out of the layout.
Unfortunately there isn't anything the theme can do when the ad itself is fixed in size.