Can I disable zoom magnifier on product pages and have zoom icon open lightbox?
-
We have determined that many if not most of our customers do not intuitively understand that clicking the magnifier icon in the upper corner of the main image on an individual product page will open the lightbox. This is because the magnifier, when hovered over, just produces a magnified image that moves around inside that box. I found code in another post to disable the zoom feature and have implemented it on our site (see below). You can see it in action on the page link below.
However, that additional code also makes the magnifier icon disappear. What I’d like to know is if someone can provide code to do either of the following:
(My 1st choice) The magnifier icon appears in the upper right corner of the main image when a product page opens, and when the icon is clicked, the only thing that happens is the lightbox opens (no zoom).
(My 2nd choice) When the cursor is moved over the main image, a browser magnifier icon pops up, and when the person clicks, the lightbox opens.Code so far, added to functions.php of our Child Theme:
add_action( ‘after_setup_theme’, ‘remove_pgz_theme_support’, 100 );
function remove_pgz_theme_support() {
remove_theme_support( ‘wc-product-gallery-zoom’ );
}- This topic was modified 7 years, 2 months ago by .
- This topic was modified 7 years, 2 months ago by .
- This topic was modified 7 years, 2 months ago by .
- This topic was modified 7 years, 2 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Can I disable zoom magnifier on product pages and have zoom icon open lightbox?’ is closed to new replies.