Archived topic
Ad Inserter Ajax data
4 replies · Started by Sam on June 4, 2022
Hi,
1- I'm using the Ad Inserter plugin to insert ads between posts.
it works but, not for the ajax loaded posts when using infinite scroll.
according to the plugin author, it's the theme!
either the theme isn't using the the_content function to request the data or it's filtering the received data and inserting only some of it.
personally, I don't know what half of that means but I tried wrapping my ad in an <article> seeing that Tom has suggested that in an older post,
but that didn't work either.
any idea?
2- Is it possible to have the comment form at the top of the comment section? right now it's way, way down.
thanks.
Hi there,
sorry for the delay in responding, your topic slipped through our net.
1. Is it possible to see the page where the adverts are not being inserted on infinite scroll ?
2. It takes a little work - this article explains:
https://docs.generatepress.com/article/move-the-comment-form-above-comments/
hello David.
1- links in the private section. The plugin works, the problem is just in the ajax loaded posts.
I need to figure out how to insert an element among those posts.
2- yes I ended up doing that but, your method is much better because it doesn't involve editing the theme file directly.
thank you guys, love working with you.
What happens if you wrap your code in an article tag with the infinite-scroll-item class?
<article class="infinite-scroll-item">
// your code
</article>
Well, It Works!
Thank you so much David