td-visible-desktop and td-visible-phone in a Article TOP Ads

Posted in: Newspaper
Post count: 30

Hello,
i have a problem. I use theme responsive for mobile, not plugin mobile.
In theme Options -> ADS -> “article Top Ad” I need it add two different banner for ad mobile and ad desktop. My problem is in a desktop, not show banner because in a html div “master” is a display:none.
on mobile it works, but only because maybe it’s in first position

This is a example:


<div class="td-visible-phone">
    *CODE FOR BANNER MOBILE
</div>
<div class="td-visible-desktop">
   *CODE FOR BANNER DESKTOP
</div>
  • This topic was modified 7 years by geniovi.
Post count: 35449

Hi,

From what I can see you’ve set the code as in our documentation -> https://forum.tagdiv.com/header-ads-adsense/

Please provide me a link were I can inspect this problem, in this way I will be able to provide you an working advance.

Thank you!

Post count: 30

The problem is in this div with class “td-a-rec td-a-rec-id-content_top”. Is in a display:none !important


<div class="td-a-rec td-a-rec-id-content_top  td-rec-hide-on-m td-rec-hide-on-tl td-rec-hide-on-tp td_uid_2_5cf0ccd26b705_rand td_block_template_1">
<div class="td-visible-phone">
    <div id="adv-gpt-box-mobile-container1" style="padding-bottom:10px"></div>
</div>
<div class="td-visible-desktop">
   <div id="adv-gpt-masthead-skin-container2"></div>
</div>
</div>

A example link of my site is
https://wp.me/p7pQW0-sOc

the code is after Featured Image.

  • This reply was modified 7 years by geniovi.
Post count: 35449

Hi,

Pleas make sure that the code you set is as this one -> https://www.screencast.com/t/UxGwHgEtb3dS please do not add extra classes

Also please make sure that you do not have a plugin conflict, please deactivate all non theme plugins, also if you are using child theme or cache plugin, please deactivate them, clear all cache and try again.

Thank you!

Post count: 30

the extra class I need for my advertising code, I don’t understand what problem it can give

Post count: 35449

Hi,

Is possible that the extra class to have set a stronger css that will overwrite the theme css.

Thank you!

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