Header ad shrink

Posted in: Newspaper
Post count: 7

Hi,
I would like to use a 728X90 adsense banner in the header, but unfortunately it’s shrinked to 320X50 px size. How can I solve it?

Thanks,
Rob

Post count: 7

Sorry, I forgot the link to my site: http://fotopalyazat.info

Post count: 6600

Hi,

The AdSense banners are made responsive by the theme if not set different from theme panel, so it should fit the space available if not set to display fixed at that size.
Please make sure you have set it right from theme panel, like this: http://screencast.com/t/uH3No5spWTe2

Thanks

Post count: 7

Hi,

every Adsense size are set on Auto, so I am clueless why it’s in a 320X50 px box.

I’ve copied the code for that from Firebug:

<iframe width="320" height="50" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}" id="aswift_1" name="aswift_1" style="left: 0px; position: absolute; top: 0px;"/>

Post count: 6600

Hi,

I have inspected the banner also. Please make sure that your ad code is not set for a fixed size, for 320 X 50 in your case, this may be the reason your banner is always at this size.
If it’s not please send us an e-mail at contact@tagdiv.com and give us wp-access so we can check, send a link to this topic or specify the issue details.

Thanks

Post count: 32

@Lucian,the theme is ignoring any size you set in the ad code, even if you select Smart sizing in Adsense Panel.

How I worked around this issue is by specifying the ad sizes for different viewports in the option that the theme gives.

For example, if I am using a leaderboard ad, I paste the code. Then instead of keeping resizing at auto, I set 728×90 for desktop, 320×50 for mobile and so on and so forth. That works perfectly.

Post count: 6600

Hi,

@Nitish Saxena
Thanks! That’s the way should work.

@vrobert

You could also try this.

Thanks!

Post count: 7

Hi,
I’ve tried as Nitish suggested, but it didn’t work for me unfortunately.
I am going to send you a wp-acces to my site and refer to this topic. Thank You.

Post count: 6600

Replied via e-mail!
Thanks for the message!

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