Home Forums WoodMart support forum disable scroll on product description

disable scroll on product description

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #242363

    Zecarl
    Participant

    i saw in another post woh to disable a scrolling in description accordion. I update the code that you gaved in global CSS.
    actualy when one accordion is open the other are closed. is it possible to open all accordion if we want and close only the accordion that we want.
    Thanks
    similar in private content

    #242520

    Hello,

    Try to add the following code snippet to the Custom JS area on document ready in Theme Settings to fix this issue.

    jQuery('.wc-tabs-wrapper .woodmart-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');
    });

    When you click the next tab, the previous one would remain open with this code. If you want the code where all the tabs are open, let us know, we shall provide, however we do not guarantee it would be stable.

    Kind Regards

    #243899

    Zecarl
    Participant

    Elise it’s perfect. You are the best! Thanks

    #243957

    Hello,

    I will team our dev team that they are the best :)) You are welcome!

    If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘disable scroll on product description’ is closed to new replies.