Okay
  Public Ticket #2299679
Portfolio filter with children category
Closed

Comments

  • nethellier started the conversation

    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

  • nethellier replied

    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



  •  8,992
    Tahir replied

    Hey ,

    Yes thats correct the Portfolio Filters only work with Parent Categories. 

    Best 


    ThemeNectar Support Team