Hello,
I am using the Dawn theme and want to remove the ‘collections’ word from my url for SEO reasons and to make it look cleaner.
I am searched around and all the solution state to go into the ‘edit code’ section and to remove any code containing ‘with: collection’ in the ‘snippets/product-details.liquid file and the snippets/product-thumbnail.liquid’ areas. I’ve tried but cannot find the ‘within: collection’ code anywhere at all to remove.
Does anyone have a solution for this particular theme?
Thanks,
Hi @embeskin
In the url, the word “collection” only appears when you enter the product page from the collection page
if you enter the product page directly from the homepage, there will be no word “collection”
this helps the browser know the history of previous pages, supports other features
so it cannot be deleted
Hello @embeskin
If you have a dawn theme then you can fins the snippets/card-product.liquid
https://prnt.sc/UP9_Reswe9RH
Based on version of the theme and theme code the file name might be different.
If you still not find that then let me know your store URL and I will trying my best to fin it for you.
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Hi @embeskin
Please find and remove that part of the code in snippets/card-product.liquid file.