Show different non-Adsense ads depending on the device

Posted in: Newspaper
Post count: 52

Hello,

I wanted to add my own ads between paragraphs in articles. I used the guide:

https://forum.tagdiv.com/using-other-ads-non-adsense-ads/

Unfortunately, on mobile devices, it does not hide dedicated graphics from higher resolutions. It displays all one below the other. As if it wasn’t styled.

I temporarily put one picture for all devices:

<div class = "td-all-devices">
</div>

However, this is not a solution and I want to fix this problem.

It may result from the “tagDiv Mobile Theme” plug-in installed.

Post count: 35449

Hi,
I’m not sure that I correctly understand the situation. Do you use the mobile theme plugin? In this case is no longer need to set for the mobile ads those tabs, just set the image in mobile ads -> https://i.imgur.com/QQvYa21.png -> https://forum.tagdiv.com/the-mobile-theme/
Nor if you are using the responsive version, then you can try this strategy on pages and cloud templates. Use the tagDiv Composer to edit theme and check those options -> https://i.imgur.com/lKXcpmn.jpg
Now for article ads indeed you need to use those codes -> https://i.imgur.com/vgSsTrZ.png
I hope this will help you!

Post count: 52

As I wrote, I am using a template plugin for mobile devices. Probably she does not have any styled classes for mobile devices.

I use manual code insertion in articles because each article has different images.

Please check this problem by inserting in the article:

<div class = “td-visible-desktop”>
</ div >
<div class = “td-visible-tablet-landscape”>
</ div >
<div class = “td-visible-tablet-portrait”>
</ div >
<div class = “td-visible-phone”>
</ div >

Of course, with the plugin of the mobile template running. Because it is rather she does not have added correct styles in css, which will disable graphics for higher resolutions. I conclude this because computers only display one graphic.

Post count: 21065

Hello!

In order to avoid misunderstandings, please provide more information about what exactly you need to achieve, screenshots or a video.

A solution for sending a screenshot/video is this:
Download, capture, send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link, paste it here.

Thank you!

Post count: 52

After all, everything is described above. Just post you in your demo version in the following article html codes:

https://forum.tagdiv.com/using-other-ads-non-adsense-ads/

1. Just add banners for different sizes from “Sample image ad with different images for each device:”
2. Then install and run the template plugin for mobile devices.

In the screenshot below you can see that ads for all devices and sizes are displayed.

https://ibb.co/tczsQ2m

Post count: 21065

Hello!

If you use Mobile theme plugin, then you do not need to add that code. My colleague explained above how you can achieve what you need in this case.

Thank you!

Post count: 52

Understand that these are hand-inserted ads, each article will have different graphics. These are not automatic ads.

Therefore, it must work as I wrote.

Your friend did not provide a good solution. The screenshot concerns ads on all subpages, and as I wrote, I’m interested in a single article.

In addition, I do not use your editor for posts, only the old version, so for me the perfect solution is html code, which does not work with the Mobile theme plugin.

Post count: 21065

Hello!

We would like to investigate this issue further.
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 and let you know what can be done!

Thank you!

Post count: 52

No exaggeration 🙂 Please upload equal graphic formats for different devices to your demo, install the mobile template application and test it.

The solution is probably very simple, the application does not have css styles that hide the remaining graphics for low resolution.

It does not require such complicated contact and dedication of time. You have wasted more time on writing back than checking a trivial problem.

Post count: 21065

Hello!

I’m not sure what you mean exactly. This is the code which is hiding the other images/ads which appear in the Mobile Theme layout:
https://pastebin.com/ex1i7Bg1
The code should be added here: https://prnt.sc/nTiJueuIDC0I

Hope that helps you!

Thank you!

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