I am getting problem with filters behaviors of the portfolio. The class "active" added to the current category does not remove when you clic on another one. Clicking on "all" reset everything. My categories are in fact subcategories. Maybe your javascript code does not take that into account ? All I know is that the class "active" does not remove.
To solve my problem, salient-portfolio.js needs to be modified (as follow ?):
line 243 replace:
// active classes $(e.target).parent().parent().find('li a').removeClass('active');
by
// active classes $(e.target).parents().parent().find('li a').removeClass('active');
Please tell me if what I wrote is correct and if so, please advice about how I can modify/add this code somewhere so that next theme update won't need any handmade intervention.
Hi,
I am getting problem with filters behaviors of the portfolio. The class "active" added to the current category does not remove when you clic on another one. Clicking on "all" reset everything. My categories are in fact subcategories. Maybe your javascript code does not take that into account ? All I know is that the class "active" does not remove.
Can you do something for me ?
Regards
Nethel
Hi again,
To solve my problem, salient-portfolio.js needs to be modified (as follow ?):
line 243 replace:
// active classes
$(e.target).parent().parent().find('li a').removeClass('active');
by
// active classes
$(e.target).parents().parent().find('li a').removeClass('active');
Please tell me if what I wrote is correct and if so, please advice about how I can modify/add this code somewhere so that next theme update won't need any handmade intervention.
Thanks
Regards
Nethel
Hey ,
Yes thats correct the Portfolio Filters only work with Parent Categories.
Best
ThemeNectar Support Team