Make a link to the products with the same brand - Dawn Theme

Topic summary

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:

  1. 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.

  2. Vinsinfo’s approach: Edit main-product.liquid file by:

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.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

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? :slightly_smiling_face:

My site:

www.dekanten.no

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

1 Like

Hi again

Will this code works for all productbrands i have in stock? :slightly_smiling_face:

@Dekanten

Please follow below steps to make a link to the products with same brands and let me know whether it is useful for you.

  1. From admin, go to “Online Store” → “Themes”.
  2. Click action button from the current theme and select “Edit code”.
  3. Search “main-product.liquid” file and find the class “product__text caption-with-letter-spacing”.
  4. Then change the

    tag to tag and add href attribute like below,


  1. After updating the open

    tag to tag, don’t forget to update the closing

    tag to tag.

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.

1 Like

This is just for a certain page.

To make it work for all pages you might need to make changes directly to the theme