-
edirik
Hi,
In mobile view the width of the Google Ads are sometimes higher then the overall width of the page. So this does not create a good experiences e.g., scrolling left and right.
How can I ensure that the ads shown are always within the width limit?
Thanks,
Example here: https://ibb.co/7xVTKmCY
-
Alvind
Hi there,
Are you using Auto Ads? If so, those are inserted dynamically by Google and can appear in different parts of the HTML. Unfortunately, their placement isn’t something the theme can control.
-
edirik
Nope, I am not using Auto Ads. I generated a specific one.
My Google Ads code: <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6757953720241725" crossorigin="anonymous"></script> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-6757953720241725" data-ad-slot="2398160791"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> -
Try this CSS:
ins.adsbygoogle * { max-width: 100% !important; }
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.