Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Streamline template + Products display

Streamline template + Products display

SophieRobin
Visitor
3 0 0

We’re using the Streamline Shopify template to build our website . We display products on different pages (like the homepage and “Shop Now” page) using a “featured collection” section. When a product is clicked, it goes to the collection page instead of the individual product page we built, which affects our Yotpo reviews not being displayed. Could you help ensure that product links go directly to the original product page?Screenshot 2024-11-07 at 18.50.41.png

Replies 3 (3)

rajweb
Shopify Partner
370 35 50

Hey @SophieRobin ,

To link directly to the original product page instead of the collection page in your Streamline theme, you’ll need to adjust the code in the “featured collection” section or wherever the products are displayed. Here’s how:

1. Locate the "featured collection" section code in your theme. This is usually in the Sections folder of your theme files and might be named something like featured-collection.liquid or similar.

2. Find the Product Link Code: Look for code that generates the product links, which might look something like this:

 

<a href="{{ product.url | within: collection }}">

 

3.Modify the Product Link: Change it so it links directly to the product page by removing the within:collection filter. Replace it with:

 

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

 

4. Save and Test: Save the changes and test the links to ensure they go directly to the product page instead of the collection page.

By making this change, clicking on a product in the featured collection should take users directly to the product’s individual page, ensuring that Yotpo reviews and other product-specific features are displayed correctly. Let me know if you need further assistance with these steps!

 

If I was able to help you, please don't forget to Like and mark it as the Solution!
Best Regard,
Rajat Sharma

 

-Need a Shopify developer?
https://rajatweb.dev/
Email: rajat.shopify@gmail.com
SophieRobin
Visitor
3 0 0

Screenshot 2024-11-13 at 13.25.59.pngScreenshot 2024-11-13 at 13.26.18.pngScreenshot 2024-11-13 at 13.26.32.pngScreenshot 2024-11-13 at 13.26.38.png

SophieRobin
Visitor
3 0 0

hi there

as you can see above those steps did not work for me

please let me know if you know why

thanks

sophie