Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove the zoom icon that appears when hovering over image?

I'm working on a site that uses this bootstrap theme. When the mouse hovers over any image a zoom icon appears - how do I remove it?

I have tried removing class="zoomIcon" and looked on this site as well as searching on Google.

HTML:

<div class="product-main-image-container">
  <img src="../../images/products/prod1.png" alt="" class="product-loader" style="display: none;">
  <span class="thumbnail product-main-image" style="position: relative; overflow: hidden;">
    <img src="../../images/products/prod1.png" alt="">
    <img src="../../images/products/prod1.png" class="zoomImg" 
         style="position: absolute; top: -0.0456852791878173px; left: -1.23350253807107px; opacity: 0; width: 400px; height: 400px; border: none; max-width: none; max-height: none;">
  </span>
</div>
like image 241
NRKirby Avatar asked Jul 17 '15 19:07

NRKirby


People also ask

How do I get rid of the zoom hover effect?

To remove it, Create a child theme . Open functions. php file of the child theme and add following code: function remove_image_zoom_support() { remove_theme_support( 'wc-product-gallery-zoom' ); } add_action( 'wp', 'remove_image_zoom_support', 100 );

What is Zoom hover?

Zoom images/videos on all your favorite websites (Facebook, Amazon, etc). Simply hover your mouse over the image to enlarge it. Hover your mouse over any image on the supported websites and the extension will automatically enlarge the image to its full size, making sure that it still fits into the browser window.

How do I get rid of image zoom in WooCommerce product pages?

In order to disable product Image Zoom, simply paste this snippet into your functions. php file, within the theme folder: remove_theme_support( 'wc-product-gallery-zoom' ); This one line magic code will disable image zoom feature on the single product page in WooCommerce.

How do I change the size of the hover box?

To change the width and height of the hover box in the Wix editor, go to the “Settings” tab and click on “Site Settings.” Then, click on the “Customize” tab and select “Advanced Settings.” In the “Advanced Settings” window, scroll down to the “Hover Boxes” section and adjust the “Width” and “Height” settings.


Video Answer


2 Answers

You can add this to your CSS:

<style>
img:hover {
cursor: default;
}
</style>

I hope this helped you!

like image 99
MoosMas Avatar answered Jan 03 '23 10:01

MoosMas


You can override this cursor behavior by either modifying the CSS that is making it happen (it looks like a CSS file called style.css) or by writing your own rule to make it stop.

The rule is on .product-main-image in line 432 of the style.css file, and to overwrite it, you would need a rule like this:

.product-main-image{cursor:default;} or any other cursor style you wish

like image 36
CreMedian Avatar answered Jan 03 '23 11:01

CreMedian