Google AdSense and Affiliate leaderboard banners not responsive on mobile
-
Dear ThemeGrill team, thank you for the amazing ColorMag theme! It’s really beautiful and easy to use. I just started a technews website as a hobby and would love to hear from you regarding this cosmetic issue:
As shown on your ColorMag demo page the top “728×90 Banner Advertisement Get it now” is quite responsive. Although it’s a demo PNG it is perfectly responsive on both desktop and mobile. I have replaced it temporarily on my website with a jpg image with the same size and it works just fine. The problem is when I delete the image and want to replace it with a Google AdSense code with a fixed 728×90 size – it does not show well on mobile. If I opt for the responsive Ad size it does not shows-up at all on both desktop and mobile. What I do is deleting the widget, pressing “+” and adding the code.
This is my Google Adsense code:
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6568149107086945" crossorigin="anonymous"></script> <!-- Leaderboard 728x90 --> <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-6568149107086945" data-ad-slot="4661644598"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>
The problem is the same with another affiliate code I took from a partner:
<script type='text/javascript' src='//profitshare.bg/ai/2759938'></script>
Can I add or edit something in it to make it smaller on mobile, so it would move just under my logo and the image shown not being cut from one side or another?
These codes shows-up and look good on a PC only. On mobile the image from the affiliate program is cut from the right, and the google ads are trimmed from both left and right.
Here are links to the examples:
Affiliate banner: OK on PC
AdSense banner: OK on PC
Simple JPG banner: OK on mobile (somehow it becomes responsive)
Affiliate banner not OK on mobile (not responsive, trimmed from the right):
AdSense banner not OK on mobile (not responsive, trimmed from both left and right):
I want to monetize the top space, but hate it when it looks weird on mobile. What should I do to solve this issue?Thanks!
- This topic was modified 1 year, 2 months ago by .
- This topic was modified 1 year, 2 months ago by . Reason: grammar
The page I need help with: [log in to see the link]
- The topic ‘Google AdSense and Affiliate leaderboard banners not responsive on mobile’ is closed to new replies.