Ads on Auto Scroll Pages

Posted in: Newspaper
Post count: 43

How can we show ads on auto scroll pages?

Post count: 21065

Hello @tangy!

If you need random ads, then you can use auto ads and you should place the code in the Theme Panel -> Analytics/Js Codes. For reference, check this article: https://support.google.com/adsense/answer/9261805?hl=en&ref_topic=9261304

Thank you!

Post count: 43

Hi Bettina,
I am not using Adsense ads. I am using ads from other ad network. Where can I place their codes to make the ads appear in the auto scroll pages? Thanks in advance.

Post count: 21065

Hello @tangy!

Please provide more information about what you need to achieve(where exactly do you need to add the ads), screenshots or a video and your website link in order to help you efficiently.

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: 43

Hi Bettina,
The issue is none of the ad plugins for WordPress can insert ads in pages generated by auto scroll. Even when we use theme panel ads option or using ad block via cloud template the ads don’t appear in the auto scroll posts.

We want to show ads in content after every 3 paragraphs. We are currently using advanced ads plugin for this. The plugin works for all posts except the ones generated by auto scroll.

Please see below what the plugin author has to say about the auto scroll issue.

Developers of AJAX-loading plugins or themes should make sure that is_singular() and in_the_loop() return true in their content. You could add something like this to your loop:

global $wp_query;
$wp_query->is_single = true;
$wp_query->is_singular = true;
$wp_query->in_the_loop = true;

Can you tell me how to do this? This will benefit everyone using newspaper theme as currently ads cannot be displayed in auto scroll posts.

  • This reply was modified 4 years by tangy.
Post count: 21065

Hello @tangy!

So, the problem exists only by using this functionality: https://forum.tagdiv.com/infinite-loading-single-posts/
Unfortunately, this plugin is not a tested one with our theme.
For this customization, you need to modify the theme files which is not covered by the support team. The file of this functionality can be found here: wp-content\plugins\td-cloud-library\includes\tdb-ajax.
For customization and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/

Thank you for understanding!

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