Mobile theme – header ad sizing issue

Posted in: Newspaper
Post count: 201

Hi,

I’m using the tagDiv Mobile Theme plugin as an easy way to create a mobile version of our site. It covers most of the basics without having to create everything manually, but I’m experiencing problems with the ad configuration.

Under theme panel -> mobile theme -> header ad, I have a Google Adsense code that specifies a 320×100 ad. I have verified the code is correct – if I insert it into a post I see the 320×100 advertisement – yet on the mobile site the header ad is a large square.

What could be going wrong?

Post count: 27744

Hello,

Please make sure the code for the ad is approved and is loaded.

Thank you!

Post count: 201

Hi Anamaria, the ad is loaded and displayed, just at the wrong size. You can view it on mobile here.

Post count: 201

Think I’ve managed to fix it!

The code supplied by Google has the size defined as follows:

style="display:inline-block;width:320px;height:100px"

That didn’t work, as the ad was square, but manually changing the code to the following appears to have sorted it:

style="display:inline-block;min-width:320px;max-width:320px;height:100px"

Post count: 35449

Hi,
We are glad that you manage the situation, and indeed now the ads looks fine on mobile https://i.imgur.com/zUbFVTA.png
If you have other questions, let us know!
Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.