Live Filter – set default filter (activate a filter at beginning)

By default, the “All” option is active in Live Filter dropdown, button…
To activate another filter at beginning, please add this code to Custom JS field in Content Views >> Settings page:

var term_slug = 'clothing';// Slug of the taxonomy term to activate

if ($('[value="' + term_slug + '"]').is('option')) {
    var $select = $('[value="' + term_slug + '"]').parent();
    $select.val(term_slug);
    $select.trigger('change')
} else {
    $('[value="' + term_slug + '"]').trigger('click')
}

Please replace clothing with slug of the category, tag or taxonomy term you want to activate at beginning.

Best regards,