Hello,
Would it be possible to sort the portfolio through string?
For example:
http://themes.semicolonweb.com/html/canvas/portfolio-5-masonry.php
How can i open this page while 'Media' is pre-selected?
Thank you
4 replies · opened Dec 15, 2016
Hello,
Would it be possible to sort the portfolio through string?
For example:
http://themes.semicolonweb.com/html/canvas/portfolio-5-masonry.php
How can i open this page while 'Media' is pre-selected?
Thank you
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.
Thank you
But can i do it through URL as well?
So for example:
This is the main gallery page
And i want to link to this page and have a certain filter, i would want to do something like
www.website.com/gallery?filter=cats
Is this possible?
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.
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