Shopify themes, liquid, logos, and UX
Hello
when I switch between variants the page is autoscrolling ( see in the video) How can I fix this? Spotlight Theme.
Solved! Go to the solution
This is an accepted solution.
Could you change option Desktop layout in your Online store > Themes > Customize > Products > Default product to Thumbnail carousel and then check if it solve this issue.
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
Could you drop your product URL to check?
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
https://clothing-joga.com/products/kopie-von-oversized-shirt?variant=47411063718232
Password „ShopTestJoga123“
This is an accepted solution.
Could you change option Desktop layout in your Online store > Themes > Customize > Products > Default product to Thumbnail carousel and then check if it solve this issue.
- Helpful? Like and Accept a solution. - Donate: Buy coffee ☕- or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now
Hi @clothingjoga ,
You can try using the following solution
In Online store, select Themes -> More -> Edit code
In the media-gallery.js file, press Ctrl + F and search for the phrase scrollTo and comment on the code line as shown in the image, click Save to save the changes.
If you still have problems, you can search for similar phrases: scrollTo, scrollIntoView,... in other .js files and comment with // and check if the problem still exists or not
Hope my answer will help you. @clothingjoga
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS
BSS Commerce - Shopify Apps & Store Development Service Provider
Hire a Shopify expert | Shopify Plus Store Development
Thanks for your try, but there is still the same problem. Any other ideas?
Hey @clothingjoga ,
If your problem persists, you can try one of the following two solutions:
1. In the file media-gallery.js, find the line of code:
activeMedia.scrollIntoView({ behavior: 'smooth' });
Replace with the following line of code:
// activeMedia.scrollIntoView({ behavior: 'smooth' });
Click Save to save changes
2. In the theme.liquid file, add the following code before the {% endstyle %} tag
<script> $(document).ready(function(){ $('select, input[type="radio"]').on('change', function() { var currentPos = $(window).scrollTop(); setTimeout(() => { $('html, body').scrollTop(currentPos); },100) }); }); </script>
Click Save to save changes
Hope these solutions will help you @clothingjoga
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS
BSS Commerce - Shopify Apps & Store Development Service Provider
Hire a Shopify expert | Shopify Plus Store Development
Is this the right position? When yes, it is not working.
Looks like I made a mistake, the correct place to add that code is before the </head> tag, not the {% endstyle %} tag. I'm very sorry about this mistake of mine.
Hopefully changing this solution will work on your store.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS
BSS Commerce - Shopify Apps & Store Development Service Provider
Hire a Shopify expert | Shopify Plus Store Development
User | RANK |
---|---|
226 | |
166 | |
66 | |
54 | |
51 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023