Okay
  Public Ticket #1561291
Adding second set of portfolio category filters
Closed

Comments

  •  1
    admin-spacelab started the conversation

    How could I go about adding a second category filter to sort the list of portfolio items?

    I have tried enabling “subcategory filtering”, which could really solve my problem if I could get the filter to show all the subcategories at once, instead of showing only my two parent categories.

    Any tips on how I achieve this?

    Thanks, have a great day :slight_smile:

  •  1,559
    Laborator replied

    Hi there,

    That's not possible through the theme options but using Custom CSS you can show all the sub-categories which are hidden:

    .subcategory-active.product-filter .portfolio-root-categories li {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    .product-filter .portfolio-subcategory {
        position: relative;
        visibility: visible !important;
    }
    .product-filter .portfolio-subcategory li {
        visibility: visible;
        transform: none;
        opacity: 1;
    }
    

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  1
    admin-spacelab replied

    Hi Art,

    Thank you so much, exactly what I needed :-) Will you help me tweak it a little? 


    I'd like to hide the parent categories at all times, except "All" – is that possible? 

    Please see http://spacelab.dk.linux2.scannetserver.dk/ if you need to.

  •  1,559
    Laborator replied

    Hi again,

    Use this CSS to hide the parent categories:

    .subcategory-back-href {
      display: none !important;
    }
    

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group