Hello,
Thank You so much for your Patience! Please consider adding the following JS Code replacing the existing code:
jQuery(window).load(function(){
var $container = $('#portfolio'),
infinityScrollBehavior = false;
if( jQuery('body').hasClass('device-sm') || jQuery('body').hasClass('device-xs') || jQuery('body').hasClass('device-xxs') ) {
infinityScrollBehavior = 'portfolioinfiniteitemsloader';
}
$container.infinitescroll({
loading: {
finishedMsg: '',
msgText: '',
img: "templates/tmpl_jewel/images/preloader-dark.gif",
speed: 'normal'
},
state: {
isDone: false
},
nextSelector: "#load-next-posts a",
navSelector: "#load-next-posts",
itemSelector: "article.portfolio-item",
behavior: infinityScrollBehavior
},
function( newElements ) {
$container.isotope( 'appended', $( newElements ) );
var t = setTimeout( function(){ $container.isotope('layout'); }, 1000 );
SEMICOLON.widget.loadFlexSlider();
SEMICOLON.portfolio.arrange();
SEMICOLON.initialize.lightbox();
});
});
This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.