Hello!
I have a problem with my refresh theme (version 15.0.1).
When i switch variant for my product, page scrolls up automatically. This is very annoying, especially when using ‘‘sticky add to cart’’ button. Can someone help me with this?
Hello!
I have a problem with my refresh theme (version 15.0.1).
When i switch variant for my product, page scrolls up automatically. This is very annoying, especially when using ‘‘sticky add to cart’’ button. Can someone help me with this?
Hi! The issue you’re experiencing is likely due to a JavaScript conflict in the theme. You can fix this by updating the theme’s JavaScript to prevent the page from scrolling when switching variants. If you’re comfortable with code, you can look into the theme’s theme.js file and check the variant change function.
Where is this folder located and what should i change there? Thanks in advance!
Go to Shopify Admin:
Locate the File:
Fix the Issue:
Save and Test
This issue may be due to JavaScript behavior in your theme when switching variants. Try updating the theme to the latest version or check for settings that control scrolling. If the problem persists consider modifying the theme code
Thank you for also solving my problem.
I think the frontend code like javascript may be causing the issue. You need to remove extra javascript code or do some alterations in the theme. İf there is a theme update please update it.
best way is to use inspect element and then post the problem to gpt which might also give a proper answer.