Infinite-Scroll and similar "endless pages"-plugin, should call doLightbox(); whenever it loads new content. Most plugins have a setting for code that is called after each new page is loaded - just give it this: if(typeof doLightBox !== 'undefined' && typeof jQuery !== 'undefined'){ doLightBox(); }