Home › Forums › WoodMart support forum › Accordian tabs on product page Accordian tabs on product page This topic has 3 replies, 3 voices, and was last updated 5 years, 4 months ago by Eric Watson. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts October 17, 2019 at 3:49 pm #150758 gilbery007Participant When looking at a product the description tab is already opened. Is there any way to have this closed until a user clicks to open it? October 17, 2019 at 8:32 pm #150784 Elise NoromitMember Hello, Add the snippet to the Custom JS section in Theme Settings: setTimeout(function() { var $tab = jQuery('.woodmart-tab-wrapper').find('a.active'); $tab.siblings('.wc-tab').hide(); $tab.removeClass('active'); }, 10); Best Regards October 18, 2019 at 12:18 pm #150904 gilbery007Participant Thank you for providing the javascript code snippet. We would ideally like this code to only run on mobile devices and for the tab to remain open on desktop. Is this possible? October 18, 2019 at 1:30 pm #150938 Eric WatsonParticipant Hello, Try using this code instead of the previously given if (jQuery(window).width() < 1024) { setTimeout(function() { var $tab = jQuery('.woodmart-tab-wrapper').find('a.active'); console.log($tab); $tab.siblings('.wc-tab').hide(); $tab.removeClass('active'); }, 10); } Kind Regards XTemos Studio Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to create new topics. Login / Register