Shopify themes, liquid, logos, and UX
We are encountering a few issues with customers being sent the wrong product variant because they select the product thumbnail they wish to purchase, but Shopify doesn't then change the variant option to the corresponding variant. I cannot find a solution for selecting variants by clicking the variant thumbnail images on Dawn theme — it only works the other way around, by selecting the variant option, which then changes the main image.
A workaround for this may be to disable 'click' on the product thumbnails. I would like customers to still see the image slider/thumbnail gallery below the main product image, but I do not want them to be able to click on these thumbnails to change the image. This way, the only way they will have of changing the main image is by selecting the variant option they wish to view / purchase.
Is this possible through code?
Link to site: https://www.greatbritishyarns.co.uk/products/eden-cottage-yarns-milburn-dk
Solved! Go to the solution
This is an accepted solution.
Hi @gracemoore,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file -> Save
.product__media-wrapper .thumbnail-list__item button.thumbnail {
pointer-events: none !important;
}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
This code did not work when I added it to my base.css file, but I have added it to my theme.liquid file enclosed in a style tag and it was worked! Thanks so much.
Add to theme.liquid:
<style>
.product__media-wrapper .thumbnail-list__item button.thumbnail {
pointer-events: none !important;
}
</style>
This is an accepted solution.
Hi @gracemoore,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file -> Save
.product__media-wrapper .thumbnail-list__item button.thumbnail {
pointer-events: none !important;
}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
This code did not work when I added it to my base.css file, but I have added it to my theme.liquid file enclosed in a style tag and it was worked! Thanks so much.
Add to theme.liquid:
<style>
.product__media-wrapper .thumbnail-list__item button.thumbnail {
pointer-events: none !important;
}
</style>
Hi @gracemoore ,
We're happy to see that our suggestion helped you solve the issue. Can you kindly give us a like and mark it as a solution? This can be a reference for other merchants if they have an issue like you.
Should you need any further information, please do not hesitate to contact us by tagging directly at Community post. We will check and let you know soon.
Thanks in advance 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025