Viewing 1 replies (of 1 total)
  • Any updates on this request? I have a theme from Yithemes and I would like to have Main Product photo changed by hovering on thumbnails instead of clicking on them.

    I found this code which is incompatible with Zoom Magnifier, yet it does change Main Product Image while Hovering on thumbnails.

    add_action('wp_footer', 'wpq_wp_footer');
    function wpq_wp_footer() {
    ?>
    <script type="text/javascript">
    jQuery(document).on('hover','.thumbnails .yith_magnifier_thumbnail', function(){
      var full_img = jQuery(this).attr('href');
      jQuery('.yith_magnifier_zoom_wrap a img').attr('src', full_img);
    });
    </script>
    <?php
    }

    This code can be placed in functions.php of theme.

    I look forward to hear from someone in this regards.

    Best,
    Art

Viewing 1 replies (of 1 total)
  • The topic ‘Change main image on hover instead of click’ is closed to new replies.