Hi everyone
I have a site, with about 1000 filterable posts and i want the site to load on a different category, than the “ALL” tab. Makes sense?
I have a category with fewer items, that i would like to be the one the site boots up on. Is there a code hack that can change the category the site starts on? there should be, right? I feel like it shouldn´t be that hard to figure out, but i can´ crack it haha.
jQuery(document).ready(function($){$(‘.elementor-portfolio\_\_filter\[data-filter=”\_\_all”\]’).remove();$(‘.elementor-portfolio\_\_filter\[data-filter=”308″\]’).addClass(‘elementor-active’);});
​
I’ve tried with the code above, but somehow the class “elementor-active” on the “ALL” tab, overrides everything, even if i try and remove it
any help is appreciated. thanks
[ad_2]