Home Forums WoodMart support forum Disable auto open tab

Disable auto open tab

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #100287

    pogopie
    Participant

    How do I disable that the product tabs jump at me ?

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

    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

    #100370

    pogopie
    Participant

    And if I only want it to be executed on mobile phones ?

    #100382

    Eric Watson
    Participant

    Hello,

    Try changing the previous code to the one I provided below.

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

    pogopie
    Participant

    Does not work

    #100394

    Eric Watson
    Participant

    Please, provide us your admin access so we can login and check this on your side.

    Thank you in advance.

    #100399

    pogopie
    Participant

    Its a multi site. Velomint CZ is the page.

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

    Eric Watson
    Participant

    Hello,

    Try changing the previous code to the one I provided below.

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

    pogopie
    Participant

    yes! works perfect Thanks a thousend times

    #100411

    Eric Watson
    Participant

    You are welcome!

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