Home Forums Basel support forum Hide Content on Load Reply To: Hide Content on Load

#11574

Artem Temos
Keymaster

Hello,
By default, WooCommerce opens first tab when the 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-basel_additional_tab').hide();
    $tabs.parent().find( '. basel_additional_tab_tab' ).removeClass('active');
}, 10);

Regards