A user needed to insert line breaks in heading fields on their Shopify store’s About page, as the standard <br> tag wasn’t working in the heading field.
Solution Provided:
Add custom JavaScript code to the theme.liquid file (above the </head> tag)
The code enables <br> tags to function within headings
Initial implementation was successful
Current Status:
The original poster confirmed the solution worked
Two additional users have since encountered issues:
One wants to apply the same fix to multiple sections in a Honey theme
Another reports the solution initially worked but has stopped functioning, with <br> showing as invalid again
The discussion remains open with unresolved follow-up questions about why the fix may have stopped working and how to apply it to different theme sections.
Summarized with AI on October 26.
AI used: claude-sonnet-4-5-20250929.
I’m using Symmetry and on our “About” page (https://casa-amao.com/pages/about), I want to force a line break in the heading of one of the custom content sections to have it look like:
Nachhaltigkeit und Qualität
Ästhetik und Funktion
Since the does not work in the heading field, does anyone have a suggestion how to solve this?
Hi there! I tried this solution, and it originally worked. But now it’s not working, and saying is invalid again. Do you have any idea why this might be happenign?