Home Forums WoodMart support forum Accordion tabs

Accordion tabs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34117

    tayyib
    Participant

    Hi, I needed help to change the accordion tabs

    What do I need to change in the tabs.php file to have all tabs closed.

    #34131

    Artem Temos
    Keymaster

    Hi,

    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

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