[Resolved] Ad Inserter Ajax data

Home Forums Support [Resolved] Ad Inserter Ajax data

Home Forums Support Ad Inserter Ajax data

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2243805
    Sam

    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.

    #2244717
    David
    Staff
    Customer Support

    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/

    #2244953
    Sam

    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.

    #2245814
    David
    Staff
    Customer Support

    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>
    #2246245
    Sam

    Well, It Works!
    Thank you so much David

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.