Woocommerce tabs closed by default
-
Hi,
can you please help me with the Woocommerce tabs.
I would like to have all woocommerce tabs on the single product page closed by default.
I already found a solution in this forum, but this does not work for me.
I have tried this:
setTimeout(function() {
var $tabs = jQuery( ‘.wc-tabs, ul.tabs’ ).first();
$tabs.parent().find(‘#tab-description’).hide();
$tabs.parent().find( ‘.tab-title-description’ ).removeClass(‘active’);
}, 10);
Regards
Hi,
Have you added the code to the Custom JS section so we can check it on your website now?
Regards
Try to replace with this one
setTimeout(function() {
var $tabs = jQuery( '.wc-tabs, ul.tabs' ).first();
$tabs.parent().find('#tab-description').hide();
$tabs.parent().find( '.tab-title-description' ).removeClass('active');
}, 550);