Home Forums WoodMart support forum Keep close description accordion tab

Keep close description accordion tab

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

    Hello!

    I would like to know if it is possible to keep close by default the accordion description tab when you load a product page please?

    Regards,
    Benjamin.

    #65004

    Hello,

    In order to make the gap smaller http://prntscr.com/jzv6rj use this code:

    .tabs-layout-tabs .tabs li {
        margin-right: 10px;
    
    }

    Set the margins as per your needs and add this code to Theme Settings > Custom CSS.

    Best Regards

    #65011

    Sorry I do not not express myself correctly,

    I would like the description in accordion stay close by default as the picture joined here.

    Is it possible please?

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

    Artem Temos
    Keymaster

    Hello,

    By default, WooCommerce opens the 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 $tab = jQuery('.woodmart-tab-wrapper').find('a.active');
    		$tab.siblings('.wc-tab').hide();
    	  $tab.removeClass('active');
    }, 10);

    Best Regards

    #65032

    Ok JS code works fine for that. Thank you very much for support!

    All the best,
    Benjamin.

    #65035

    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘Keep close description accordion tab’ is closed to new replies.