Removing "/collections/" from collection page URL

Highlighted
New Member
1 0 0

I have read how to remove the collection path from product page URLs 

{{ product.url | within: collection }}

and replace with

{{ product.url }}

BUT - How do i remove the "/collections/" from the url of collections pages?  

I have:

www.domain.com/collections/category-subcategory

i want:

www.domain.com/category-subcategory

Thanks for your help. 

0 Likes
Highlighted
Shopify Expert
9925 103 1764

That's not possible. The url type (in this case collections) is required.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
1 Like
Highlighted
Shopify Partner
18 0 2

There is an example how you could do it with CSS here not for Shopify but can be changed to work 

https://css-tricks.com/dynamic-page-replacing-content/

Janus
0 Likes
Highlighted
New Member
1 0 0

Hello,

 

I know this is an old thread and I've been checking a few others. Is there a solution for this for the Shogun theme? I've gone through a number of sections and can't seem to find anything resembling product.url anywhere?

Alternatively, is there a way I can do a mass find on the entire site to see if there is a liquid section where this is sat?

Thanks!

0 Likes
Highlighted
New Member
1 0 0

There is one more problem, if you remove collections from urls, then collections also disappear in breadcrumbs, how to avoid this?

0 Likes