• Resolved hazheyworth

    (@hazheyworth)


    Hey Support Team! Thanks in advance.

    We’re trying to fix the issue of Ads not appearing beyond an infinite scroll’s pre-loaded items. This is in relation to our archive and category page(s). We’ve configured the ads to appear after 3 posts, on repeat.

    I’ve read through the common issues with Infinite Scroll, AJAX, Ad Inserter etc.

    (Remote Debugging is enabled.)

    From my understanding, we need to “make sure the theme? (or plugin for?infinite scroll) calls?the_content?filter to process content sent via Ajax calls.”

    The issue is that we use Elementor’s Archive Posts widget. So, if we make any changes directly to the plugin file, the changes will be overwritten with the next update. That approach seems a bit futile?

    Is there another approach that we can try, or a solution to this issue that I’m not aware of?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Spacetime

    (@spacetime)

    Hello,

    it seems that the next pages are loaded normally with blocks inserted, for example:
    https://10almonds.com/category/wildcard/page/3/

    But whoever is doing infinite scroll ignores blocks inserted by Ad Inserter – it inserts only article tags into the page. You need to contact support of the theme or pugin doing infinite scroll.

    Thread Starter hazheyworth

    (@hazheyworth)

    Hey Spacetime, thanks for the response. As you mention, using “/page/3” etc to navigate to page results works. However, this isn’t a native feature for the user (i.e. there is no button to bring the user to the next page, given we are using an infinite scroll).

    Could you please be more specific on what I should be asking the Elementor team? Given that Elementor is huge (5 million+ active installs) I would have thought that Ad Inserter has compatibility with their features.

    Plugin Author Spacetime

    (@spacetime)

    Well, this is how your infinite scroll loads next pages.

    As explained, this has nothing wityh any compatibility from Ad Inserter. The plugin inserts blocks as configuerd. The blocks are inserted – you can check the link to the 3rd page I posted as an example. This is an extract of the code

            <article class="elementor-post elementor-grid-item post-10634 post type-post status-publish format-standard has-post-thumbnail hentry category-wildcard tag-journalists-resource">
            </article>
            <article class="elementor-post elementor-grid-item post-10635 post type-post status-publish format-standard has-post-thumbnail hentry category-wildcard tag-journalists-resource">
            </article>
            <article class="elementor-post elementor-grid-item post-10636 post type-post status-publish format-standard has-post-thumbnail hentry category-wildcard tag-journalists-resource">
            </article>
            <div class="code-block code-block-7" style="margin: 8px 0; clear: both;">
            </div>
            <article class="elementor-post elementor-grid-item post-10637 post type-post status-publish format-standard has-post-thumbnail hentry category-wildcard tag-public-good-news">
            </article>
            <article class="elementor-post elementor-grid-item post-10638 post type-post status-publish format-standard has-post-thumbnail hentry category-wildcard tag-kff-health-news">
            </article>
            <article class="elementor-post elementor-grid-item post-10639 post type-post status-publish format-standard has-post-thumbnail hentry category-wildcard tag-the-conversation">
            </article>
            <div class="code-block code-block-7" style="margin: 8px 0; clear: both;">
            </div>
            <article class="elementor-post elementor-grid-item post-10640 post type-post status-publish format-standard has-post-thumbnail hentry category-wildcard tag-the-conversation">
            </article>
    

    It is the infinite scroll that is “incompatible” as it ignores these blocks in the next pages and inserts only article tags into the main page. If Elementor is doing infinite scroll then you need to ask them to insert the completeed content part of the next pages, in your case article tags and div tags which contain blocks inserted by Ad Inserter (including Javascript code needed for client-side functions).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Elementor – Archive Post Widget – Infinite Scroll issues’ is closed to new replies.