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

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

/* Shuffle Filter - set default filter */
window.sf_enable_trigger = true;
setTimeout(function() {
    var $filter_bar = $('[id^="pt-cv-filter-bar-VIEWID"]');
}, 2000);

Please replace VIEWID with ID of your View, and replace the number 1 with index number of the filter you want to activate. Here are indexes of filters:

Best regards,

Scroll to Top