Solved

Changing Collection Product Links?

Corwin
Visitor
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.

Accepted Solution (1)

Corwin
Visitor
2 1 0

This is an accepted solution.

Nevermind, I fixed it.

 

The code is located in product-thumbnails.liquid

View solution in original post

Replies 3 (3)

Corwin
Visitor
2 1 0

This is an accepted solution.

Nevermind, I fixed it.

 

The code is located in product-thumbnails.liquid

Kjankko-US
Shopify Partner
236 4 41

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

jenish
Shopify Partner
17 0 4

Hello, I have the same Problem and my  Clients Wants to Do that Exactly, My Theme is https://embebabies.com/

Can anyone Please Help me?

Solanki Jenish