Restore original product image on shop swatch mouseleave

You are here:
← All Topics

If you have all the product images and hover images that are of similar dimensions , you can enable this feature using snippets given below.

add_filter('wcva_restore_product_image_on_mouseleave','wcva_restore_product_image_on_mouseleave', 10,1 );

function wcva_restore_product_image_on_mouseleave() {
  return "yes";
}

You can use Code Snippets plugin to insert extra php code.

https://wordpress.org/plugins/code-snippets/