• Resolved libertig

    (@libertig)


    Hello, I’m wondering if it’s possible to load Simply Gallery on post scrolling function that this plugin has: https://connekthq.com/plugins/ajax-load-more/

    The gallery doesn’t load out of the box, it just displays the loading icon, the lightbox doesn’t load on stock gallery either.

    They do have callback functions so it should be possible to trigger it, right?

    If it is possible, I will need some information of how to implement it, please.

    Thank you.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter libertig

    (@libertig)

    Been waiting for an answer, it would be great to have your gallery fully working with this ??

    Tried some alternatives but it’s the same, they don’t want to load.

    Plugin Author GalleryCreator

    (@gallerycreator)

    Unfortunately I have no way to deal with Ajax themes and other plugins, and how exactly your theme works. As I see you are using native WP gallery in conjunction with my lightbox and it works great. I think this is the best solution in this situation.

    Thread Starter libertig

    (@libertig)

    Hello, thank you for answering.

    The problem is that your gallery loads on the post but not on Ajax loading that is the post that loads below the first one. This is where I’m having the problem.

    I was just wondering if it was possible to use the callback function to run some tests.

    Thread Starter libertig

    (@libertig)

    Tried to inspect the code but it’s minified. Is it available on GitHub?

    Hi I had a similary problem and checked + unminify the file ./blocks/pgc_sgb.min.js
    Here he calls a Eventlistener at last:

    window.addEventListener("load", function () {
         window.PGC_SGB.searcher.searchBlocks();
     }));

    Call it after loadin, in my case it was the solution

    Thread Starter libertig

    (@libertig)

    @tommyfrog

    Thank you, you’re awesome.

    For those who are wondering where and how to put this line of code you have to edit it like this:

    window.almComplete = function(alm){
        window.PGC_SGB.searcher.searchBlocks(); 
    };

    And put it somewhere on your template as a script.

    • This reply was modified 4 years, 3 months ago by libertig.

    Hi @gallerycreator – thanks for your great plugin!
    I’m also wrestling with an AJAX theme, and would love to be able to use your plugin with it.
    I’m no coder, so I wonder if you might be able to add the fix in this thread (or similar) to your plugin as a toggle option ?
    I’ve seen similar in other plugins, something like:
    [] Fix for AJAX themes (beta)
    * If the SimpLy Gallery Block is not displaying, or you see only a spinner, enable this option for increased compatibility with your theme.

    Thanks, and keep up the great work!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Trigger Simply Gallery on Ajax Load plugin’ is closed to new replies.