Unable to remove item from portfolio grid

1 reply · opened Dec 6, 2018

AAstro20000Dec 6, 2018

Could you help me understand the best way to remove an item from a portfolio grid layout, such that the other items re-organise themselves without me needing to refresh the page.
Thanks
Anthony

SSemicolon WebSTAFFDec 9, 2018

Hello,

Please consider using the example from here: https://isotope.metafizzy.co/methods.html#remove . Example:


	jQuery('.grid-container').on( 'click', '.portfolio-item', function() {
	  // remove clicked element
	  jQuery('.grid-container').isotope( 'remove', this )
		// layout remaining item elements
		.isotope('layout');
	});

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.

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