Portfolio shuffle onload not working

3 replies · opened Mar 13, 2017

JjuanleMar 13, 2017

Hello,

Firstly thanks for the great template.

I would like to have automatic shuffle onload. I have read the following two related posts
http://support.semicolonweb.com/forums/topic/potfolio-shuffle/
http://support.semicolonweb.com/forums/topic/random-order-on-porfolio-page/

I have tried, but it seems not to work. I am not sure if maybe something has to be updated due to the last updates in the template.

You can take a look for example to https://www.eventplannerspain.com/newtemplate/event-suppliers.asp?idsubcat=1&idprov=7&idioma=Es

I have added
<script>
jQuery(window).on( 'load', function(){
jQuery('#portfolio').isotope('shuffle');
});
</script>

But still the order onload is always the same. Could you please check?

Thanks a lot and have a nice day
Juan

JjuanleMar 18, 2017

Any news about this question? Thanks for your support

JjuanleMar 19, 2017

I found a workaround that it is working

setTimeout( function(){ $('#portfolio').isotope('shuffle'); }, 2500 );

Although, it is not the ideal solution the problem is solved

SSemicolon WebSTAFFMar 26, 2017

Hello,

Please consider using the following code instead:


	jQuery(window).on( 'load', function(){
		setTimeout( function() {
			jQuery('.grid-container').isotope('shuffle');
		}, 500 );
	});

This should work more effectively. Hope this Helps!

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

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