This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Category filter styling

#47777
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

I think the easiest and fastest way is to use a bit of javascript to mark the selected label. In CSS it’s not possible to target parent selectors, so I don’t think there is any other option:

jQuery(function($){
    $('.asp_label').on('click', function(){
        $(this).parent().find('.asp_label').removeClass('asp_label_selected');
        $(this).addClass('asp_label_selected');
    });
});

This will add “asp_label_selected” class to the current selection, then you can target it with CSS:

.asp_label_selected {
}