I’m in need of some assistance here.
I created a metafield multiline for my product page so I can have separate text under a collapsible section using a dynamic source.
The headline for this section is “Specifications.”
However, all the text I insert tends to contract, only accepting a single space between words.
But for some reason, line breaks does work.
This is how I want the text under the collapse bar.
But this is how I get it:
Please help!
Here is the link
Best!
JN
Have you considered using a rich text metafield instead of a multiline text metafield? Additionally, this content appears to be more suited for a table format. Using a table within the metafield might be a more professional approach.
Hi, just tried it, Not working.. =( More suggestions?
Also, how do I get a table format into the metafield. Does not appear to have that function.
I tried and managed to add the spaces. You have to use single line metafield. Shopify’s single line metafields allow the use of html elements and keywords like line breaks(
), spaces( ) and more. So you could do it like this
Light Source LED BULB or like this
Light Source LED Bulb
There is no option to directly create a table metafield, but you can achieve this by following these steps: first, create a page metafield; next, create a page that contains the table; and finally, link the metafield to the page.
Hi there,
Well this
Light Source LED Bulb
just worked in the liquid box. But by doing so I also got another font. that not correspond to the rest of the page.
The space coding did not work at all…
I did so, but it affected all other products as well, and gave all products the same specifications. I, of course, want specifications for each product because they are different.
This is driving me nuts.
To achieve what I described, you need to use the ‘Single Line Text Metafield’. Why did you attempt it with custom liquid? Also, the last picture uses a rich text metafield, which will only function properly with the single line text metafield and not with any other text-based metafield.
You could create multiple pages for each specification, but I understand if that’s not your preference due to its lack of dynamism. Another approach could involve creating a custom page template using Liquid and HTML to generate the table, supplemented by JavaScript to dynamically retrieve data from metafields. However, this method would require considerable effort.
I am not sure its lack of dynamism, is more because relating one products specifications to a dynamism, effects all other.
I dont mind using multiple pages, as long as I get them separated for each product. 
Have you tried the Single Line Text Metafield?
Yes, but still not working. Do you know how to solve this or just giving out suggestions?
I tried it with single line text Metafield and it worked. It looks like this