Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi
(Dawn theme)
I have added a custom text field to a producy details page template using a custom liquid block to capture personalisation details and it works fine apart from the fact that line breaks appear as white spaces in the basket modal as well as on the checkout page. (I assume the same will occur on the order email but havent checked that.)
Example of Product page input
Example of Output
For the text field to work I really need the line breaks to be retained.
I have tried using css white-space: pre-wrap; & white-space: pre-line; on the checkout, basket pages but its a bodge that doesnt really work.
If anyone knows how to send the form data to include the <br> I would appreciate hearing from you.
Cheers
Brinley
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025