portfolio-shuffle

3 replies · opened Jan 29, 2018

CcocotoroJan 29, 2018

Hello!

Is there anyway "portfolio-shuffle" works bringing up in order upside-down and viceversa all the portfolio items?

The way it works now is just random.

Thanks in advance.

CcocotoroJan 31, 2018

Hello Again, just in case you did not understand my bad English. I just want this button to re-order portfolio items so as the last become the first and so on.

Waiting for your answer.

Thanks.

SSemicolon WebSTAFFFeb 7, 2018

Hello,

Thanks for your Patience!

This is Definitely Possible. Please find the following code in the js/functions.js File inside the shuffleInit: function() Function Block:

$(elementContainer).isotope('shuffle');

and replace it with:

if( $(elementContainer).hasClass('grid-items-order-reversed') ) {
	$(elementContainer).isotope({
		sortBy : 'original-order',
		sortAscending: true
	});
	$(elementContainer).removeClass('grid-items-order-reversed');
} else {
	$(elementContainer).isotope({
		sortBy : 'original-order',
		sortAscending: false
	});
	$(elementContainer).addClass('grid-items-order-reversed');
}

This will definitely work fine. Hope this Helps!

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

CcocotoroFeb 8, 2018

Thanks a lot, it works!!!

Best regards.

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