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

This topic contains 0 replies, has 1 voice, and was last updated by  Support 3 years, 1 month ago. This post has been viewed 1806 times

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)