Misplaced links on portfolio image after infinite scroll load

3 replies · opened Nov 4, 2016

DdaihloNov 4, 2016

Hey there :)

I am using the inifinite scroll function to load more results onto a portfolio page, but there is a problem with the alignment of the links after more items have been loaded.
The URL to view this is jewel.zigstum.com
The code used to instantiate infinite scroll:


		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') ) {
				//alert("here");
				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();			

			});
		});

Is it possible to reposition the items after they have loaded?
Thanks for your help :)

SSemicolon WebSTAFFNov 6, 2016

Hello,

Your Codes are perfectly fine but you will need to add an Additional Function to fix this. Simply add the following JS Code inside the function( newElements ) Function Block of the above code:

SEMICOLON.portfolio.portfolioDescMargin();

This will definitely fix the issue. Let us know if we can help you with anything else or if you find any further issues.

DdaihloNov 6, 2016

Best web-based support I ever had!
Worth every penny.
Thank you :D

SSemicolon WebSTAFFNov 6, 2016

Hello,

Thank You so much for the Very Kind Words and your Patience! Very Happy to Help! :)

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard