For Theme Panel > Ads, How to change the break points?

Posted in: Newspaper
Post count: 174

I’ve used these instructions — https://forum.tagdiv.com/using-other-ads-non-adsense-ads/
but it’s not working for tablet + I’d like to customize it for other breakpoints. Is there a way to do that?

Or is there another option by adding a template to a child theme? If so, which template would I use and how would I add that to a child theme?

Thanks

Post count: 27744

Hello,

Please provide more details about your issue and what doesn’t work for tablet.

Thank you!

Post count: 174

Hi I’m using all these:

<div class="td-visible-desktop">
    <!-- Your NON AdSense code here - this ad will show only on desktops -->
</div>
<div class="td-visible-tablet-landscape">
    <!-- Your NON AdSense code here - this ad will show only on tablets in landscape orientation -->
</div>
<div class="td-visible-tablet-portrait">
    <!-- Your NON AdSense code here - this ad will show only on tablets in portrait orientation -->
</div>
<div class="td-visible-phone">
    <!-- Your NON AdSense code here - this ad will show only on phones -->
</div>

I just got the tablet one to work but the problem is anything under 768px goes to the ‘phone’one. Is there a way to customize that more so that I can have an image for something like 425px – 768px? I know there’s ways with CSS & HTML but do you know where I access those templates and how to add the code to a child theme? Thanks

Post count: 27744

Hi,

Those are the resolution for each device -> https://i.imgur.com/icMGBnC.png
So, if you want to edit them, you can do it in this path -> wp-content/plugins/td-composer/legacy/Newspaper/assets/css/td_legacy_main.css
But you do not need to edit the file; you need to copy the code, edit it as you need, and set it to the Theme Panel -> Custom Code -> Custom Css -> https://i.imgur.com/wYQ4ZrH.png or you can set it in the child theme in css file.

Thank you!

Post count: 174

Thanks. I actually am doing direct ads (not adsense script just image) and have to change the layout position of the advert images, that’s why I was wondering which template to access to edit the actual layout stuff. I have a custom menu on mobile view so I need it to go under menu.

Post count: 27744

Hi,

Please provide the link to your website and a screenshot of where you want to have the ad.

Thank you!

Post count: 174

Is there an email I can send it to? Do you know where I can find the category templates + post templates + how to add to the child theme?

Post count: 27744

Hi,

If you want to send the link via email you can do it to contact@tagdiv.com and provide also the wp-admin to check the settings.

Thank you!

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