Removing /collections from page URLs on Minimal Theme

Evening,

We are currently using the Minimal Theme in Shopify. We have a website that has around 40 individual collections and wish to remove the /collections part within each collections page URL.

I have seen there are ways of doing this on other themes but seem to have exhausted resources attempting to find someone who has achieved this on the Minimal Theme.

As an example we currently get a link like this:

www.test.co.uk/collections/laptops

We wish to remove the /collections part and for the link to appear as follows:

https://www.test.co.uk/laptops

Any ideas?

Regards,

W

Hi @Wynn3r

This is Victor from PageFly - Shopify Page Builder App

So sorry but you will not be able to remove the /collections
Because that was fixed by the Shopify setting. The page is for Shopify know that your page belongs to Collection pages
So it will have /pages for regular page - /product for product page - /collections for collection page
And there is no way to remove that

Hope this can help you solve the issue

Best regards,

Victor | PageFly

Evening,

I am not sure if I have explained correctly.

I have seen multiple videos doing this on other themes with a simple edit of the code.

{{ product.url | within: collection }}

and replace with

{{ product.url }}

This YouTube video also explains how to do it on multiple themes (not the minimal theme)

Shopify - Remove /collections from url on product page - YouTube

This video also shows that it is possible, from start to finish on standard Shopify themes.

(1340) Shopify Tutorial: Removing /collections/ name from product URLs - YouTube

After further trolling through the internet, the above mentioned amendment in code can cause duplicate products. However, this can be resolved by applying the canonical on your collection template.

We have 1200 Individual Products. Each of these products fit into a category.

So to list correctly; aesthetically pleasing to the customer, we used collections as a category to collate multiple individual products.

For SEO purposes a domain as follows:

www.websitenamehere.com/collections/PRODUCT

Will not work efficiently with googles algorithms, and in return provides poor ranking and overall traffic.

There must be a way to resolve this on one of the biggest website builder platforms…

Surely not all 1.75 Million of Shopify’s current subscribers have WEBSITENAME.COM/COLLECTIONS/PRODUCT ?

Regards,

W

Hi @Wynn3r
Please take a closer look on those video tutorials
They remove the /collection format example.myshopify.com/collection/collection-name/products/product-name

From the product pages. Because on some theme the Shopify they have the URL with above format
You can use custom code to do for a case above
And you cannot custom code to remove a /collection in the case : example.myshopify.com/collection
Thank you