Comments endquote started the conversationOctober 15, 2019 at 12:11amI have multiple categories of posts in the post widget, and I can select a category to filter by. Can I chose a category to filter by as the default setting, instead of all? 675Neuron repliedOctober 15, 2019 at 2:34pmHi,Unfortunately you can't do that with options, you can either use the filter 'All' with different filter or see the solution at stackoverflow.- https://stackoverflow.com/questions/12006315/how-to-apply-a-default-filter-to-the-container-after-dynamic-insertion-of-itemsFeel free to ask for anything you need.Kind Regards Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.endquote repliedOctober 15, 2019 at 4:21pmThanks, I can try that solution.What's the correct way to insert JavaScript?What element would I query to call .isotope on?Ideally there would be a setting to choose a default filter. 675Neuron repliedOctober 16, 2019 at 8:55amHi,The best way to add JavaScript is through a third-party plugin, because in case any update you won't lose anything.- https://wordpress.org/plugins/insert-headers-and-footers/So, here's what you need to do.Add a custom class for each post type, this is only when you want to add different filters for different pages. - https://prnt.sc/pjynrf <script>jQuery(document).ready(function($) { var $container = $('.active-home-filters'); $container.isotope({filter: '.your-custom-filter'}); });</script> Feel free to ask for anything that you need.Kind Regards Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group. Sign in to reply ...
I have multiple categories of posts in the post widget, and I can select a category to filter by. Can I chose a category to filter by as the default setting, instead of all?
Hi,
Unfortunately you can't do that with options, you can either use the filter 'All' with different filter or see the solution at stackoverflow.
- https://stackoverflow.com/questions/12006315/how-to-apply-a-default-filter-to-the-container-after-dynamic-insertion-of-items
Feel free to ask for anything you need.
Kind Regards
Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.
Thanks, I can try that solution.
What's the correct way to insert JavaScript?
What element would I query to call .isotope on?
Ideally there would be a setting to choose a default filter.
Hi,
The best way to add JavaScript is through a third-party plugin, because in case any update you won't lose anything.
- https://wordpress.org/plugins/insert-headers-and-footers/
So, here's what you need to do.
Add a custom class for each post type, this is only when you want to add different filters for different pages.
- https://prnt.sc/pjynrf
Feel free to ask for anything that you need.
Kind Regards
Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.