Hello
I want to make the GUERLAIN as a link, as i can push it will show up more products from guerlain. This is on the product page, can this be arranged in a easy way? ![]()
My site:
A user wants to make brand names (like “GUERLAIN”) clickable links on product pages that direct to collections showing more products from the same brand.
Two solutions were proposed:
PageFly-Richard’s approach: Add custom code to theme.liquid above tag. However, this solution only works for a single specific page, not all products. To apply globally, direct theme modifications would be needed.
Vinsinfo’s approach: Edit main-product.liquid file by:
tag to an tag with href attribute linking to brand search/collection pages
Key consideration: The user asked whether the solution works for all brands in stock. The code would need to dynamically reference the product’s brand/vendor field to work universally across different products.
Both solutions involve HTML/Liquid code modifications to the Dawn theme files.
Hello
I want to make the GUERLAIN as a link, as i can push it will show up more products from guerlain. This is on the product page, can this be arranged in a easy way? ![]()
My site:
Hi @Dekanten
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the
You can replace the link in the " " to direct to the link you want
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Hi again
Will this code works for all productbrands i have in stock? ![]()
Please follow below steps to make a link to the products with same brands and let me know whether it is useful for you.
Following the above steps will redirect to search page and display more products related to that brand.
If you want to display only the available products in that page, please use below code instead of above given code.
Please provide your support by click “Like” and “Accepted” if our solution works for you. Thanks for your support.
This is just for a certain page.
To make it work for all pages you might need to make changes directly to the theme