Home Forums Travel WordPress Theme Everything is loading on a single page Reply To: Everything is loading on a single page

#438

BWSM
Keymaster

3)change line 672-682 in js/main.js as:

			// Call infinit-scroll
			jQuery('#list_wrap').infinitescroll({
		    	navSelector  : '#page-nav  a:last',    // selector for the paged navigation 
		    	nextSelector : '#page-nav  a:last',  // selector for the NEXT link (to page 2)
		    	itemSelector : '.list_unit',     // selector for all items you'll retrieve
				behavior		: 'twitter',
				errorCallback: function() { 
				// fade out the error message after 2 seconds
				jQuery('#page-nav a').fadeOut('normal');
				jQuery('#infscr-loading').fadeOut('normal'); 
				},
		    	loading: {
					finished : undefined,
					finishedMsg : ''
		    	}
			},
			function( newElements ) {
					jQuery('#page-nav a').fadeIn('normal');