How to set a default filter in the portfolio

Home Forums Porto – Responsive HTML5 Template FAQ’s How to set a default filter in the portfolio

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10011502
    Support
    Keymaster

    If you want to set a default filter in the portfolio other than “Show All” you can add a data-plugin-options and set the default filter, here’s an example:

    Let’s say you want “Logos” to be the default filter:

    <ul class="nav nav-pills sort-source" data-sort-id="portfolio" data-option-key="filter" data-plugin-options='{"filter": ".logos"}'>
    	<li data-option-value=".websites"><a href="#">Websites</a></li>
    	<li data-option-value=".logos" class="active"><a href="#">Logos</a></li>
    	<li data-option-value=".brands"><a href="#">Brands</a></li>
    </ul>

    Note that you also need to add the “active” class in the default filter.


Viewing 1 post (of 1 total)

This topic is marked as "RESOLVED" and can not rceive new replies.