Hello,
I want to show only portfolio items from one category on the main portfolio page by default. I changed the #js_sort_items element in the portfolio.php to highlight the correct category instead of “All”, but I still need to change Isotope to only show items from that category.
I understand that Isotope output can be filtered when it is initialized, but the way it’s implemented in Enfold, is there an easy way to use this feature?
$container.isotope({ filter: '.class' })
Thanks in advance for your support.
Hey xhRK2jvC!
You can add Masonry or Portfolio grid element to your page and choose to display certain category – http://i.imgur.com/j6ZVTJo.png
Best regards,
Yigit
I still want the other categories to be there, only the default shouldn’t be “All”, but another category.
Example from your demo page: http://kriesi.at/themes/enfold/blog/masonry-blog/
Instead of “All”, I would like to see only “Science” items when the page is first loaded.
Hi!
Thank you for the update. I’m sorry but this is not possible without major modification on the theme. Please hire a freelance developer or visit Envato Studio or Werkpress for further modification.
Cheers!
Ismael
xhRK2jvC, add this as a “Code Block” to your page. Replace the number in the eq(#) function with the navigation / category item you want to display. Voila, it works!
<script type="text/javascript">
jQuery( window ).load(function() {
jQuery('.inner_sort_button:eq(3)').click();
});
</script>
In the example above, the 3rd item is clicked after the page loads.