Product titles lead to home page after clicking, how do I fix this to lead to product page?

Product titles lead to home page after clicking, how do I fix this to lead to product page?

Spacetraders
Tourist
5 0 1

Hello, when your scrolling through the products under the collection pages, EX: Youth Apparel, Mugs, Stickers; and you click on an items title to view it, it leads the user back to the home page. But, if one was to click the products picture, it does lead them to the product page. How to a fix this to where both, the title/description & the picture, lead you to the product page. Our sites link is: https://spacetrader.shop/

 

https://spacetrader.shop/collections/patches here is a link for you to visually see the issue, try clicking on any products title, then try clicking on any products picture. 

 

I have already tried the following:
In the "collection.liquid" I found 'a href="/"' and changed it to 'a href="{{ product.url }}', but that did not do the trick.

 

Any other suggestions?
Thank you.

Replies 4 (4)

CodingFifty
Shopify Partner
1003 150 174

Hi @Spacetraders,

 

 

Go to Online Store > Themes > Edit Code.

Find this file: snippets/product-card.liquid (or similar).

Look for

<a href="/"> {{ product.title }} </a>

Replace it with:

<a href="{{ product.url }}"> {{ product.title }} </a>

Save and refresh your site.

 

Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com
Spacetraders
Tourist
5 0 1

Hi thank you for replying. I'm not the greatest at this so I apologize in advance. In the snippets section, I have "product-card-grid.liquid" & "product-card-list.liquid". Neither of them have the code you mentioned. Those are the only 2 that mention product card throughout all sections. Any other suggestions?

 

Although I did find: "  <a href="/">{{ 'general.breadcrumbs.home' | t }}</a> "

this was the only line that I could find that mentions <a href="/"

 

Not sure if this even relates to the issue.

Dan-From-Ryviu
Shopify Partner
11996 2345 2521

Hi @Spacetraders 

This is the issue with the code of your product card, you will need to correct the code of the collection liquid file to solve it. If you don't mind, please share collab request code so I can check and solve it for you.

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Spacetraders
Tourist
5 0 1

I am unable to share this I apologize, but if you have any suggestions I would greatly appreciate it.