All things Shopify and commerce
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?
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
hi there
as you can see above those steps did not work for me
please let me know if you know why
thanks
sophie
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024