Sort portfolio by string?

4 replies · opened Dec 15, 2016

SSemicolon WebSTAFFDec 16, 2016

Hello,

This is Definitely Possible. You can simply add the following code at the bottom of the Page just after the js/functions.js JS File Linking:


	jQuery(window).load( function(){
		jQuery('.portfolio-filter li').removeClass('activeFilter');
    	jQuery('.portfolio-filter li').find('[data-filter=".pf-media"]').parent('li').addClass('activeFilter');
		jQuery('.grid-container').isotope({ filter: '.pf-media' });
	});

Make sure that you change the .pf-media in the above code to your Required Class to Filter.

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.

SSemicolon WebSTAFFDec 18, 2016

Hello,

Actually, this is already supported and an Example Template for this has already been included within the Package/HTML Folder with the name: portfolio-hash-filter.html File. For the Media Filter, the URL will be: portfolio-hash-filter.html#filter=.pf-media .

Hope this Helps!

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

JjohnjohnDec 19, 2016

Great!
Thank you very much for the support

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