Ads displaying in wrong place on mobile template only

Posted in: Newspaper
Post count: 16

I have 3 different page templates and corresponding mobile templates that I use for posts. The issue is the same on all of them.

The issue just seemed to start for no reason and I can’t say exactly what day it started. I had 3 ads inserted in the Ads settings with the first one to start after the 5th paragraph, the second one after the 11th paragraph, and the third after the 20th paragraph.

On the desktop sites, the ads display as they should. But on mobile, it began displaying two ads at the top of the post, one after the other below the title. The ads being there kept any content other than the title from displaying above the fold.

I thought it might be a conflict between the Amp plugin, TagDiv Mobile Theme plugin, and Mobile Templates. I deactivated and deleted both the Amp plugin and the Mobile Theme plugin, leaving just the mobile templates. The problem still exists.

As a test, I removed all ads from the content section. None displayed on desktop or mobile, which is as it should be.

I added one ad back in after the 11th paragraph. It worked as expected on the desktop, but displayed at the top of the content section on mobile.

I moved the ad to be after the 5th paragraph. Same result.

What’s even stranger is that even with only one ad inserted in the settings, the mobile template displays duplicate ads at the top of the post content section.

The settings won’t allow me to set different ad settings for desktop and mobile. I can insert two ads for desktop and save the settings, then go to the mobile settings for ads and remove one and save the settings. It removes the ad from desktop and mobile. That is after changing the settings for desktop and saving, then opening the mobile settings and save them. Always – change ads in either one, the other one changes, too.

No matter what settings, as long as there is at least one ad in the settings, two will display at the top of the content section on mobile.

Of course, I have cleared the caches in all browsers on mobile and desktop, cleared the cache in WP Rocket, cleared the CDN cache. The server cache refreshes every 60 seconds. None of those help the problem.

What could possibly be causing this?

Post count: 16

Sorry, I forgot to mention that the problem exists across Chrome, Firefox, and Safari browsers.

Post count: 21065

Hello!

Please provide your website link with the ads settings on in order to help you efficiently.
Please check if you have installed in your browser some AD Blocks extensions and uninstall them.

Thank you!

Post count: 16

https://thetechiesenior.com

no browser ad blockers are installed

Post count: 21065

Hello!

I checked your website and it seems you have some ads which are displaying, but also some gaps where the ads should be displayed. Please check to add the ads with problems in another locations and see if they works or not. Maybe, the problem could be in the ads provider, and not in the theme because if it was a problem from the theme the ads were not displaying at all and also no gap. Or, try to add an ad code which is displaying already in the website and add it in the place where you have the problem and see if it works.

Let us know about your results!

Thank you!

Post count: 16

I have placed ads in the settings for locations where I want them. That is the point of this thread. I place the ads and they display as wanted on desktop, but on mobile they display two ads, one after the other, at the top of the article and not in the locations where they are set in TagDiv settings. Ads in the mobile template are not honoring the settings. This issue should nothing to do with the ad provider (Adsense). I did double-check to be sure that auto-ads aren’t turned on in Adsense. They are not.

As for some ads not appearing where placeholders are, that may be with the ad provider, but the issue that I detailed in the original post of this thread and in the previous paragraph are related to the TagDiv mobile template.

Post count: 21065

Hello!

Please check the setting for your mobile version and delete the multiple ads from the fields.
If there are not multiple ads, then you need to check for a plugin conflict. Please deactivate ALL plugins except tagDiv ones, also if you are using child theme or cache plugin, deactivate them, clear all cache(also from your browser) and try again.
We recommend using WP Super Cache plugin: https://forum.tagdiv.com/cache-plugin-install-and-configure/
If this problem is not solved after that, then we need to take a look and see what happened there.
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– a link to this topic in order to identify you
Our team will take a look!

Thank you!

Post count: 16

This is a live site so I deactivated only those plugins that did not affect the layout or functionality of the site. No difference at all.

I have successfully used WP-Rocket with this site for several months and have had zero issues that were caused by that plugin. However, I disabled it, cleared all caches – everywhere. No difference at all.

Again, I cleared all caches – browser, Wp-Rocket, CDN, etc..

There are a total of 4 different post templates involved in this issue, used according to category, etc.. Each post template has a mobile template. The issue is present for all of them.

Here is something that I’ve discovered today after going back through every template and double-checking everything.

TagDiv randomly displays a responsive version of the desktop template instead of the corresponding mobile template. Sometimes it does, most times it doesn’t and this is to the same device. When it does, the problem does not exist. Every ad displays where it should. BUT, if it serves the mobile template as it always should on phones, the ads in the post content do not display correctly.

In every instance and on every mobile post template, whether it is one ad or more, they will display one after the other at the top of the article before the first paragraph. This is true no matter where I tell TagDiv to display the ad. After the 15th paragraph? It will be at the top of the article? After the 8th paragraph? Same story. More than one ad will do the same, just stacked one above the other, but all before the first paragraph.

So, now there are two questions.

1) Why does TagDiv sometimes serve the responsive desktop template and other time it serves the mobile template – to the same device?

2) Why won’t the mobile template display ads where I tell them to go?

I will submit my info via email.

Thanks.

Post count: 21065

Hello!

This situation appear when you are using the mobile theme plugin and the cache plugin that you have does not feature options for a separate mobile theme plugin therefore do not know when to deliver the mobile version and when to deliver the desktop version.
We tested with our theme the WP Super Cache and with the settings from our guide this is working correctly: https://forum.tagdiv.com/cache-plugin-install-and-configure/
Hope that helps you!

Regarding to the ads, these should work when the settings are correct, if you don’t have some plugins which can interfere.

Thank you!

Post count: 16

Wp-Rocket does have a setting for mobile themes. On or off, it makes no difference as to the problem of serving mobile ads all at the top of the article.

Post count: 104

Did you solve the problem ? I have exactly the same situation

Post count: 16

Sorry, but I don’t remember the exact steps I took to resolve the issue. I believe I stopped using the individual mobile templates and used the responsive version.

In July 2021 after that issue occurred, I joined an ad provider. In August 2021 I changed to a different theme.

Post count: 104

Ok thanks for your feedback ! I found what was in conflict. We need to use mobile+amp, not amp. This is why there were double ads.

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