Changing Collection Product Links?

Solved
Corwin
New Member
2 1 0

Hello, how would I go about making this change?

 

When I am on a collection page and I click a product it sends me to:

/collections/colelciton-name/product/product-name

 

How can I change it to just send me to:

/product/product-name

 

From What I have googled I found I need to change this on collection liquid file.

{{ product.url | within: collection }}

and replace with

{{ product.url }}

 

However, I am using the Retina theme and can not find that code in the files.

Thank you.

0 Likes
Corwin
New Member
2 1 0

This is an accepted solution.

Nevermind, I fixed it.

 

The code is located in product-thumbnails.liquid

0 Likes
Kjankko
Pathfinder
101 2 11

A little bit different than the subject, but my problem if the following:

I have a link to the collection page on my store's homepage (Debut -theme). I'm trying to create anchor link to the link which goes homepage->collection page

Question: How I find the file in "Edit code" where I can change the URL (which includes the anchor link)?

 

Thanks,

-KJ

0 Likes