How can I eliminate 'collections' from my URL structure?

Topic summary

A user seeks to remove ‘/collections/’ from Shopify URL structures, preferring cleaner paths like mywebsite.com/watches/diamond-watch instead of mywebsite.com/collections/watches/diamond-watch.

Responses provided:

  • One participant confirms it’s not possible to remove ‘/collections/’ from the slug natively in Shopify
  • Another suggests a workaround: navigate to Shopify Themes > Edit Code > locate product files > search for “within: collection” and remove it from all product-related theme files
  • A follow-up question asks how to apply this method specifically to the Studio theme, noting difficulty finding the code
  • Additional requests include asking for screenshots or tutorial links for clarification
  • A YouTube video link is shared as a potential solution for eliminating ‘/collections/’ from URLs

Status: The discussion remains open with multiple proposed solutions but no confirmed resolution or verification of effectiveness.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Is there a way to remove the Collections directory in the URL structure? It’s my bugbear with Shopify.

It just adds another, and in my opinion unnecessary step to the URLs.

Why not have mywebsite.com - This website is for sale! - mywebsite Resources and Information.

rather than mywebsite.com - This website is for sale! - mywebsite Resources and Information.

Perhaps I’m behind in my knowledge and there is indeed a way to sort this?

In Shopify, as per my knowledge, it’s not possible to remove it (collections) from the slug.

Go To Shopify Themes > Select Edit Code > Search the product files there > Search for “within: collection” and remove it from all product-related files of your theme.

1 Like

Dear Aliahmer how to do this for Studio theme. I can’t find it in the code.

Do you think you could perhaps provide a screenshot to illustrate, or perhaps a link to a tutorial?

We can eliminate /collections from URL: