[Resolved] Load More

Home Forums Support [Resolved] Load More

Home Forums Support Load More

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1530174
    mzsstade

    Hi, I use the load more function on my page.
    For the Startpage I load 4 Full Posts, tested also with 2 oder 3 e.g.

    The images will pop up in Lightbox. That works on the first 4 loaded posts and of course on every single post.
    When I clic on …Load more.. the Lightbox function for next posts is gone.

    I use Simple Lightbox, but I tested it with other PlugsIns too, its all same, after …load more… the function is gone. Any ideas how to fix it. The side is not public at this time.

    Regards
    Sven

    #1530574
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Our infinite scroll code uses this trigger once posts are loaded:

    $( document.body ).trigger( 'post-load' );

    It’s documented here: https://codex.wordpress.org/AJAX_in_Plugins#The_post-load_JavaScript_Event

    The plugin you’re using needs to hook into that trigger to re-initialize their javascript each times it’s called. That should fix the issue.

    #1530930
    mzsstade

    Hello Tom, that is beyond my competence. I do not know how to do it. Can you recommend another plug-in that supports the function?

    #1530952
    mzsstade

    I found one. Foo Gallery will do that.

    #1531425
    Tom
    Lead Developer
    Lead Developer

    Glad you found one 🙂

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