Woocommerce tabs closed by default
-
Hi,
I was wondering if it is possible to have all woocommerce tabs on the single product page closed by default. Now the product description tab is openend by default and my client wants this tab to be closed by default as well.
Is this possible?
Cheers,
Johan
Hello,
Thank you for contacting us.
By default, WooCommerce opens first tab when page is loaded. You can try to close it manually right after page loading by adding this code snippet to the Custom JS section in Theme Settings
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
Perfect! That did the trick!
Thx