Home Forums Basel support forum Woocommerce tabs closed by default

Woocommerce tabs closed by default

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5272

    Divites
    Participant

    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

    #5279

    Artem Temos
    Keymaster

    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

    #5284

    Divites
    Participant

    Perfect! That did the trick!

    Thx

    #5289

    Artem Temos
    Keymaster

    Great, you are welcome!

Viewing 4 posts - 1 through 4 (of 4 total)