Adding Product 2nd Line, Subtitle

Solved
Andriyas
New Member
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!

0 Likes
Andriyas
New Member
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!

0 Likes
hopps
Tourist
43 0 1
0 Likes
Stovetop
New Member
1 0 1

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

 

Thanks!!

RussellH
Tourist
4 0 1

I second this question!

0 Likes