Shopify themes, liquid, logos, and UX
Hi
I am trying to remove the variant id from the product link url string on collection pages.
Currently it displays like this:
mysite/com/products/blue-shirt?variant=123456789
But i want:
mysite/com/products/blue-shirt
Looked all around and seen various answers such as global.js etc but I can't locate this file. I am using the theme flow.
Thanks
Solved! Go to the solution
This is an accepted solution.
Solved.
I set "show swatches" to false in theme settings > product cards.
Could you please share your store's URL?
Also showing the variant in the URL means that you selected a variant for that product, and it's important to be there if that's the case.
This is an accepted solution.
Solved.
I set "show swatches" to false in theme settings > product cards.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025