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?

#451232

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