Elementor Portfolio filter problem

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer