Disable Product Image Click, Magnify
-
Hi,
New to Woocommerce, and love the power of the shortcodes, but I’m struggling on one thing. Both when on a product page, or using the
[products]
shortcode to show a bunch of products on a non-WooCommerce page, I’d like to display the graphic for the product, but I don’t want magnify, and I don’t want the graphic to open at full resolution.I see how to remove zoom by adding this to my child theme…
function remove_image_zoom_support() { remove_theme_support( 'wc-product-gallery-zoom' ); } add_action( 'wp', 'remove_image_zoom_support', 100 );
But, when I do that, and you click on the product graphic, it opens up a full-resolution copy of the graphic. I’d like the click to be ignored. I even tried doing a link of just “#”
Any way to remove BOTH the magnify, AND ignore the click e.g., not have it open up to show the max size of the picture?
Better yet, any way to remove the magnify, and choose where a click would go? For example, would love at the bottom of the page at https://tech-minded/smart-spacers/ to have clicking on the graphic go to the product page.
Thanks!
NeilThe page I need help with: [log in to see the link]
- The topic ‘Disable Product Image Click, Magnify’ is closed to new replies.