Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

Dawn Theme - Product Metafield Multi-lines not showing correctly

Solved

Dawn Theme - Product Metafield Multi-lines not showing correctly

Ellenarosemary
Tourist
10 1 0

Serving Suggestions

Great on a cracker with cheese With meats in a sandwich Use as a side with salads On soughdough with creme cheese
------------
This is what is showing using DAWN theme, there should be four lines, not all bunched up together.
 
Have tried using single lines but again this didn't work, so switched back to multi-lines, but can't seem to get it to display correctly. Thanks
Accepted Solution (1)
Sonya_2025
Shopify Partner
362 38 61

This is an accepted solution.

@Ellenarosemary 

1. First. use single line text instead

Sonya_2025_0-1747810642926.png

2.Reset the value on your product page. then your issue will be fixed.

 

Please let me know if it works by giving it a Like or marking it as a solution!
Feel free to reach out.Get Shopify free trial 1$/mon
 EMAIL ME  Motivate me by  PAY ME

View solution in original post

Replies 7 (7)

suyash1
Shopify Partner
11057 1364 1745

@Ellenarosemary can you please share this page link? May be your metafield is using richtext 

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
tim
Shopify Partner
4689 570 1698

As @Sonya_2025 suggested, just do not edit theme code but use "Custom liquid" block for this.

Or, maybe use a rich text type metafields if it's compatible with the theme setting you're using (or use another block, compatible with rich text?)

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

Sonya_2025
Shopify Partner
362 38 61

@Ellenarosemary 

Hi, if you just bind your metafield in the theme editor settings. then it will not show properly.

You need add the code to your product liquid. eg. my metafield name is listsingleline.

      {%- for linevalue in product.metafields.custom.listsingleline.value -%}
           {{ linevalue }} <br>
      {%- endfor -%}

 Hope this helps.

Please let me know if it works by giving it a Like or marking it as a solution!
Feel free to reach out.Get Shopify free trial 1$/mon
 EMAIL ME  Motivate me by  PAY ME
Ellenarosemary
Tourist
10 1 0

Thanks it sort of worked, the spacing is better and it matches my other metafields, but its still not showing as individual lines

 

Screenshot 2025-05-21 at 3.34.34 PM.png

Sonya_2025
Shopify Partner
362 38 61

@Ellenarosemary 

Can you share some screenshot that how the metafield defined and how you set the value 

Please let me know if it works by giving it a Like or marking it as a solution!
Feel free to reach out.Get Shopify free trial 1$/mon
 EMAIL ME  Motivate me by  PAY ME
Ellenarosemary
Tourist
10 1 0

This is how it is shown on the Products Page

 

Screenshot 2025-05-21 at 6.27.46 PM.png

Screenshot 2025-05-21 at 6.29.56 PM.png

Screenshot 2025-05-21 at 6.30.24 PM.png

 This is how it is entered in the product itself, return after each line

 

Screenshot 2025-05-21 at 6.31.37 PM.png

 Hope this is what you wanted

Sonya_2025
Shopify Partner
362 38 61

This is an accepted solution.

@Ellenarosemary 

1. First. use single line text instead

Sonya_2025_0-1747810642926.png

2.Reset the value on your product page. then your issue will be fixed.

 

Please let me know if it works by giving it a Like or marking it as a solution!
Feel free to reach out.Get Shopify free trial 1$/mon
 EMAIL ME  Motivate me by  PAY ME