Home Forums WoodMart support forum Single Product Accordion tab open fully.

Single Product Accordion tab open fully.

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

    Staffan
    Participant

    Hi team,

    Thanks for always great support.

    I have one small request that I cant really solve by myself here. I want the single product pages (product pages) to have the same functionallity like now with accordion tabs, with one exception.

    Can we make the tabs open up without the scroll, I want them to fully open on click, , removing the scrollfunction.

    Can we do this?

    Note I still want them to load in closed with only description open (as of now), but removing the scroll they have by default. Just let them unfold to full size containing content.

    Best regards
    Staffan

    #327958

    Hello,

    Please try adding the following JS on document ready in Theme Settings -> Custom JS

    jQuery('.wc-tabs-wrapper .wd-accordion-title').on('click', function (e) {
    	e.stopPropagation();
    	e.preventDefault();
    	console.log(jQuery(this));
    	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');
    });

    Best Regards.

    #327974

    Staffan
    Participant

    Hi!

    Thanks!

    I tried this one, it looks like it should work, but it doesnt 😀

    Any ideas?

    /Staffan

    #328110

    Hello,

    Sorry for the misunderstanding. I thought you were asking to remove the scroll effect after you open the tab.

    If you want to change the height of the scrolling content then please try adding the following Custom CSS in the Global Custom CSS area under Theme Settings >> Custom CSS.

    .tabs-layout-accordion .wd-scroll-content {
        max-height: 1000px;
    }

    Best Regards

    #328140

    Staffan
    Participant

    Perfect!

    Thanks!

    /Staffan

    #328155

    Hello,

    We are Glad that you loved our Theme and Support Staff. We wish you all the best.

    If you do not mind, can you please leave a 5 stars rating for our Theme & Customer and Technical Support by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in future. It would encourage our work a lot. If you like our Theme and Support.

    Thanks for contacting us.
    Have a great day :-)

    Topic Closed.
    Best Regards.

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

The topic ‘Single Product Accordion tab open fully.’ is closed to new replies.