Home Forums WoodMart support forum Accordions on the single product page

Accordions on the single product page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #42197

    xue
    Participant

    Hi,
    Is it possible to set the accordion tabs to collapse by default?
    and is it possible to add more custom tabs? (In the theme settings dashboard, there is only one additional tab content available)

    thanks in advance!

    Attachments:
    You must be logged in to view attached files.
    #42207

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

    Here is an article from WooCommerce documentation that may help you customize your product page tabs https://docs.woocommerce.com/document/editing-product-data-tabs/

    Regards

    #43232

    xue
    Participant

    Hi,
    I’ve inserted the code in the Custom JS section but it didn’t work as expected. The tab is still open by default.

    Could you direct me further with this issue?

    Thank you

    Attachments:
    You must be logged in to view attached files.
    #43239

    Artem Temos
    Keymaster

    Try to add it on document ready section.

    #43246

    xue
    Participant

    No hope neither this time…

    and also I tried on both Document Ready and GLobal section

    #43247

    Artem Temos
    Keymaster

    Strange, but we can’t reach your website to check this https://gyazo.com/7f267461bbd25a99f34a711fa988e83b

    #43298

    xue
    Participant

    Sorry, seems there was a DNS problem on my side.
    Here is the new url http://namesbuy.com/product/2018-info/

    #43318

    Artem Temos
    Keymaster

    Sorry, but we still see that error and can’t reach your website.

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