Home Forums WoodMart – Premium Template Product pages tabes

This topic contains 8 replies, has 2 voices, and was last updated by Elise Noromit Elise Noromit 2 days, 18 hours ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #243377

    Rachid
    Customer
    #243505

    Hello,

    By default the first tab is open. If it is closed it means that you have added customization. Please remove the code from the Theme Settings > Custom JS and check the issue.

    Best Regards

    #243562

    Rachid
    Customer

    Hi there

    i think you didn’t get my point!
    by default the description tab is opened! and it is open… but I want it closed

    can you tell me the code I need for that?

    thanks

    #243573

    Hello,

    Add the 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

    #243575

    Rachid
    Customer

    Thank you

    this has worked 🙂

    #243577

    Rachid
    Customer

    but there is a big problem! please watch this

    https://www.loom.com/share/ee704bbddebe40b9b2f0581a8f726d32

    #243763

    Hello,

    You need to switch tabs into Accordion in the Theme Settings > Product page > Tabs. You need to set Accordion.

    Best Regards

    #243772

    Rachid
    Customer

    i dont need to set it to tabs for the desktop viewport!

    all I want is the tabs to be closed by default when checked on mobile and tabet! to code you have provided have worked but it does make the description disappear when viewed on desktop and this need to be fixed

    #243910

    Hello,

    Please replace the code for this one:

    if (jQuery(window).width() <= 768) {
    	setTimeout(function() {
    		var $tab = jQuery('.woodmart-tab-wrapper').find('a.active');
    			$tab.siblings('.wc-tab').hide();
    			$tab.removeClass('active');
    	}, 10);
    }

    Add this code to the Document ready. I have tested on my site (I have tabs on desktop and accordion on mobile all the tabs are closed.

    Best Regards

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

You must be logged in to reply to this topic.