Home Forums WoodMart support forum Disable product image close on vertical drag

Disable product image close on vertical drag

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #414126

    rockleeyu
    Participant

    Hi there,

    We had an issue with the product image on a single product page. When the user clicks on the product image, it will enlarge it, and we can see the slider is showing. The image slider will be closed instantly if the user scrolls the mouse wheel. We would like to disable this feature. When we check the Woodmart changelog, in “04-11-2020 – Update version 5.3.0”, it shows “DEV: Added woodmart_photoswipe_close_on_scroll filter to disable photo swipe close on scroll”. Seen like this setting is available for the admin to change. But we couldn’t find this setting in anywhere. Could you help us to find it?

    Thank you

    #414371

    rockleeyu
    Participant

    Hi, anyone is helping here?

    #414438

    Hello,

    Please add this code to the functions.php of the child theme:

    add_action( 'init', function () {
    	add_filter( 'woodmart_photoswipe_close_on_scroll', '__return_false' );
    });

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

    Best Regards

    #414666

    rockleeyu
    Participant

    Issue solved. Thank you very much. : )

    #414857

    You are welcome! We are here to help.

    Wish you a wonderful day!

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

The topic ‘Disable product image close on vertical drag’ is closed to new replies.