Hello
,
To remove the zoom option on your product pages specifically for mobile devices, you can add custom CSS to your website. Here’s a simple way to achieve this:
-
Access your website’s CSS file:
- Log in to your website’s admin panel.
- Navigate to the theme customization section where you can add custom CSS. This is usually found under “Appearance” > “Customize” or similar, depending on your platform.
-
Add the following CSS code:
css
Copy code@media (max-width: 767px) { .your-zoom-class { pointer-events: none; } }
Replace .your-zoom-class with the actual CSS class that controls the zoom functionality on your product images.
-
Save your changes:
- After adding the custom CSS, save and publish your changes.
- Clear your website’s cache if necessary.
This code uses a media query to target devices with a screen width of 767px or less, which typically covers most mobile devices. The property to disable interactions with the specified element, effectively removing the zoom functionality on mobile devices.
If you’re not sure about the class name, you can inspect the element using your browser’s developer tools (usually accessed by right-clicking on the element and selecting “Inspect”).
If you need further assistance, feel free to reach out!