banner ads not resizing

Posted in: Newspaper
Post count: 224

Hello;

I added a 728X90 add code from https://adclerks.com to my header ads slot, however on mobile it does not resize… It is making the website scroll able to the left and right.

mobile
mobile

Post count: 9544

Yes, you need to either put in responsive code for the graphics, or use a responsive ad unit from the provider. Theme does not “resize” your images loaded from external javascript elements/code. This is normal. Get a responsive ad unit from them, or use the custom code setup to just put in your own code from scratch.

Theme generally expects for its system
a) raw code you place, and it drops in where you say
b) Google AdSense responsive ad units
c) setup two ad units; one for mobile; one for desktop
d) use an ad manager plugin and create your own ad units/spots, and simply place the shortcode into your site templates

(I don’t work here, just feedback)

  • This reply was modified 9 years by simchris.
Post count: 224

they don’t have a responsive adcode. the other methods are not easy to implement.

Post count: 9544

Well, how can it be responsive then?

You might try making a custom class with a size like maxwidth="99%" or similar and wrap your code in that div, or find out the class applied to the ad code.

Basically if the ad isn’t responsive it will break the layout. Theme can’t do that for you.

Post count: 22421

Hello,

In order to use custom ads in our theme please use this method of implementation:
https://forum.tagdiv.com/using-other-ads-non-adsense-ads/

Thank you!

Post count: 224

This is the code.

<!-- Begin AdClerks Zone 3759 -->
<script type="text/javascript">
(function() {
var randpubc = Math.floor((Math.random() * 100000) + 1);
var pubc = document.createElement('script');
pubc.type = 'text/javascript';
pubc.async = true;
pubc.src = '//cdn.adclerks.com/core/ad2/2691/3759?r='+parseInt(randpubc);
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pubc, s);
})();
</script>
<div id="pubclerks_3759"></div>
<!-- End AdClerks Zone 3759 -->

so how do i alter it?

Post count: 224

@Bogdan i have tried that also did not help.

Post count: 20688

Hi,

Google Adsense codes are automatically responsive and will adapt their size based on the container they are in
https://support.google.com/adsense/answer/3213689?hl=en
If you are not using an Adsense code, the theme will display the ad you enter in the theme panel as it is. Wrapping the code as shown in the guide provided above, you can have different ads displayed based on device. So you can wrap your code in a visible desktop class, and it will be displayed only on desktop. Then use a different ad code optimized for other devices, the same way
https://www.screencast.com/t/UQHc206i
These are the only options the theme has regarding ads. Some users use the Adrotate plugin for ads implementation, you can try that if the theme settings do not offer what you need.

Thanks

Post count: 224

alright thanks

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.