Home Forums WoodMart support forum keep accordion tabs open

keep accordion tabs open

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

    colorlink
    Participant

    greetings
    previously we needed a way to keep accordion tabs open . and you guys thankfully helped us out by providing the below code. however, after the last update .. it stopped working as you can see in my website .
    please help us out
    thanks in advanced

    jQuery('.wc-tabs-wrapper .wd-accordion-title').click(function (e) {
    	e.stopPropagation();
    	e.preventDefault();
    	var $this = jQuery(this),
    		$panel = $this.siblings('.woocommerce-Tabs-panel');
    	if ($this.hasClass('active')) {
    		$this.removeClass('active');
    		$panel.stop().slideUp(300);
    	} else {
    		$this.addClass('active');
    		$panel.stop().slideDown(300);
    	}
    	jQuery(window).resize();
    	jQuery(document).trigger('wood-images-loaded');
    });
    
    
    #360881

    Artem Temos
    Keymaster

    Hello,

    Try to go to Theme Settings -> Single product -> Tabs and change the “Accordion state” option to “First opened” https://gyazo.com/2333d53a310c6072251bc7d020460570

    Kind Regards

    #360884

    colorlink
    Participant

    done
    it showed as messed up

    #360904

    Artem Temos
    Keymaster

    Remove the old code as well. Then check how it works.

    #360949

    colorlink
    Participant

    did, still its messed up
    note .. i need all tabs to be open without clicking on it

    #360950

    Artem Temos
    Keymaster

    Please, send us your admin access so we can check.

    #360955

    colorlink
    Participant

    done

    #361061

    Artem Temos
    Keymaster

    Try to add the following code snippet to the Custom CSS area in Theme Settings to do this

    .woocommerce-Tabs-panel.wd-accordion-content {
    	opacity: 1;
    	display: block !important;
    }
    
    .woocommerce-Tabs-panel .wd-scroll-content {
    	max-height: 100% !important;
    }
    
    .woocommerce-tabs .wd-accordion-opener {
    	display: none;
    }
    
    .woocommerce-tabs .wd-accordion-title {
    	pointer-events: none;
    }
    #361225

    colorlink
    Participant

    great that solved it!

    #361228

    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘keep accordion tabs open’ is closed to new replies.