Product Zoom in Image is huge

Solved
Vanbesky
Excursionist
12 0 5

Hello so I've recently finished building my website and now I've noticed the product image whenever I click to zoom it occupies the whole screen and I don't want it to happen could someone help code wise? Thank you

 

Store - Vanbesky.com 

Accepted Solution (1)
made4Uo
Shopify Partner
3785 710 1094

This is an accepted solution.

@Vanbesky 

Sorry about that, please follow the instructions below instead.

1. From your Admin store, go to Online store > Themes > Click Actions > Edit code
2. Open the Section folder, and find the main-product.liquid file. 
3. Find the code below and delete it. 

<script src="{{ 'product-modal.js' | asset_url }}" defer="defer"></script>

 4. Same in feature-product.liquid, still at the Section folder. 

5. Find the code below and delete it. 

  <script src="{{ 'product-modal.js' | asset_url }}" defer="defer"></script>

6. Next, open the base.css under the Asset folder and paste the code below.

.product__modal-opener .product__media-icon {
    display: none !important
}

 

Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!

View solution in original post

Replies 11 (11)
KetanKumar
Shopify Partner
36719 3634 11911

@Vanbesky 

oh sorry for that issue can you please disable on click zoom can do hover enable if you theme allow 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
made4Uo
Shopify Partner
3785 710 1094

Hi @Vanbesky,

 

What do you want to happen instead? You can adjust the width of the product modal by using the code here.

 

1. From your Admin store, go to Online store > Themes > Click Actions > Edit code
2. Open the Asset folder, and find the base.css file. 
3. Add the code below.

.product-media-modal__dialog {
    width: 50%;
    margin: auto;
}

 

Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!
Vanbesky
Excursionist
12 0 5

That fixed it on the desktop version but ruined it on the mobile version, any way to make that command desktop specific? thank you

made4Uo
Shopify Partner
3785 710 1094

Hi @Vanbesky,

 

Yes just add the media call.

 

@media only screen and (max-width: 750px) {
.product-media-modal__dialog {
    width: 50%;
    margin: auto;
}
}
Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!
Vanbesky
Excursionist
12 0 5

Sadly that one just introduced the problem back again to both mobile and desktop. Honestly I'd just like to disable zoom overall but the theme Ride doesn't have that option

made4Uo
Shopify Partner
3785 710 1094

Hi @Vanbesky,

 

You can simply hide the modal by using the code below.

 

span.product__media-icon.motion-reduce.quick-add-hidden {
    display: none !important
}

.product-media-modal {
    display: none !important
}
Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!
Vanbesky
Excursionist
12 0 5

Unfortunately that did not work 😕 after using that code, if I click the product image, page freezes and no way to undo.. Sorry to bother 😞

made4Uo
Shopify Partner
3785 710 1094

This is an accepted solution.

@Vanbesky 

Sorry about that, please follow the instructions below instead.

1. From your Admin store, go to Online store > Themes > Click Actions > Edit code
2. Open the Section folder, and find the main-product.liquid file. 
3. Find the code below and delete it. 

<script src="{{ 'product-modal.js' | asset_url }}" defer="defer"></script>

 4. Same in feature-product.liquid, still at the Section folder. 

5. Find the code below and delete it. 

  <script src="{{ 'product-modal.js' | asset_url }}" defer="defer"></script>

6. Next, open the base.css under the Asset folder and paste the code below.

.product__modal-opener .product__media-icon {
    display: none !important
}

 

Volunteering to assist you!  Likes and Accept as Solution  is highly appreciated.✌
Coffee fuels my dedication. If helpful, a small Coffee Tip would be greatly appreciated.
Need EXPERIENCED Shopify developer without breaking the bank?
Hire us at Made4Uo.com for quick replies.
Stay in control and maintain your security by avoiding unnecessary store access!
Vanbesky
Excursionist
12 0 5

Fantastic, that worked! Thank you 🙂

LucyW1315
Tourist
10 0 1

Hello there, 

 

I've been trying this solution for myself, but don't have an equivalent of the code in the feature product liquid Snippet. I did the other steps without but nothing has changed. Any ideas? 

opentobeing
Visitor
1 0 0

I tried this but would like to put it back again. Does the code I took out need to go back in a certain place?