wp-prettyphoto & nextgen ajax pagination hack (1 post)

  1. Bozz
    Posted 5 years ago #

    I am using wp-prettyPhoto to open lightbox style windows automatically on all links to images. It works great on static pages, but not on dynamic AJAX-reloaded content. In my case, when I click 'Next', the prettyphoto functionality is broken. If I refresh the page, it works fine.

    I am using Nextgen Gallery with AJAX pagination enabled. Currently, only shutterbox is supported for this, but you can trick nextgen into thinking shutterbox is enabled, but put your own link code in. I use


    The AJAX is working, but prettyPhoto needs to run again after the AJAX comes back. I have looked for hours at answers, and they all seem to suggest to place the following into the AJAX callback:




    however, no matter where I've tried to stick this code in ngg.js, I can't get prettyPhoto to refresh properly after using the AJAX navigation in nextgen.

    does anyone know the best place to put these into the nextgen AJAX callback, or is it an error in my code?

    here is some additional helpful info:

    here is a link to the gallery (which uses thumbnails) :

    Thank you for your thoughts on this!


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic