Solved

Adding Product 2nd Line, Subtitle

Andriyas
Visitor
2 1 0

Hello, Shopify!

I need to add a 2nd line to every single product in my shop (collection) page. I know I can use metafields to achieve it but I don't understand 100% how. See screenshot of what I'm trying to achieve.

Screen Shot 2021-02-20 at 19.58.15.png

 

I tried editing product-template.liquid but it only results in changes in Product Page. In this case, my shop (or collection) page has to display the content of metafields.

Thank you so much!

Accepted Solution (1)

Andriyas
Visitor
2 1 0

This is an accepted solution.

Never mind, figured it out.

If anybody needs a solution later:

1) Install Metafields Guru app.

2) Go to Online Store - Actions - Edit Code - product-card-grid.liquid

3) Add the following snippet just about anywhere you want - {{ product.metafields.custom_design.product_subtitle }}

4) Now go the product for which you want to add a subtitle.

5) Create a metafield and use the following for Key and Namespace - product_subtitle, custom_design. Leave it at String.

6) In the field, write whatever subtitle you want and voila.

 

Just keep in mind that your theme might be a bit different. For me, the key was finding that Liquid file with the snippet. 

Hope it helps!

View solution in original post

Replies 4 (4)

Andriyas
Visitor
2 1 0

This is an accepted solution.

Never mind, figured it out.

If anybody needs a solution later:

1) Install Metafields Guru app.

2) Go to Online Store - Actions - Edit Code - product-card-grid.liquid

3) Add the following snippet just about anywhere you want - {{ product.metafields.custom_design.product_subtitle }}

4) Now go the product for which you want to add a subtitle.

5) Create a metafield and use the following for Key and Namespace - product_subtitle, custom_design. Leave it at String.

6) In the field, write whatever subtitle you want and voila.

 

Just keep in mind that your theme might be a bit different. For me, the key was finding that Liquid file with the snippet. 

Hope it helps!

hopps
Tourist
44 0 1

Hey! Glad to help.

This may be useful.

https://app.hopps.io/videos/how-do-i-add-a-subtitle-to-my-product-grid-178a8fa3745 
Happy Day!😀

Stovetop
Visitor
1 0 3

Does anyone have an updated solution to this using the Shopify 2.0 features?

 

Thanks!!

RussellH
Excursionist
35 0 67

I second this question!