Any way to remove /products/ and /collections/ from the URL?

I’m working on https://billingtackle.co.uk/ and I’d like the URL’s to display as shown.

Original: https://billingtackle.co.uk/collections/cc-moore/products/cc-moore-live-system-boilies

New: https://billingtackle.co.uk/cc-moore/cc-moore-live-system-boilies

Hi @OutRanked

In Shopify, you cannot remove the default pages/collections/products, etc.

I have tried many times and read many articles but its not possible to remove slugs and its also a different way for themes because the code varies according to the theme

Is there no way to do this in the code editor?

Unfortunately No Way

You can remove ‘/collections/’ if visistors open products from the collection by removing this code "| within:collection" from product-card.liquid or product-grid-item.liquid

But you cannot remove ‘/products/’, this is a part could not be changed with Shopify.

I don’t even have 'product-card.liquid’ or 'product-grid-item.liquid’

Could you search ‘grid’ and check?

Please share the code of the main-collection-product-grid.liquid

Full code please

We can remove /products and /collections from our URL: