Home Forums Basel support forum Woocommerce tabs closed by default

Woocommerce tabs closed by default

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18093

    Sublevel
    Participant

    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

    #18101

    Artem Temos
    Keymaster

    Hi,

    Have you added the code to the Custom JS section so we can check it on your website now?

    Regards

    #18103

    Sublevel
    Participant

    yes i have

    #18104

    Artem Temos
    Keymaster

    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);
    #18105

    Sublevel
    Participant

    works perfect! Thank you

    #18108

    Artem Temos
    Keymaster

    You are welcome!

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