Home › Forums › WoodMart support forum › First widget from archive page (filters) to be always open and the rest closed? › Reply To: First widget from archive page (filters) to be always open and the rest closed?
March 15, 2023 at 4:03 am
#451232
Elise Noromit
Member
Hello,
Please add this code to the Theme Settings > Custom JS > On document ready:
(function($) {
$(document).on('wdShopPageInit', function() {
setTimeout( function () {
$('.archive .wd-widget-collapse').first().find('.widget-title').trigger('click');
}, 100);
});
setTimeout( function () {
$('.archive .wd-widget-collapse').first().find('.widget-title').trigger('click');
}, 100);
})(jQuery);
Best Regards