So, I’m trying to get the image banner text to break into two lines in the Dawn theme - see the attached image. I’ve tried half a dozen solutions but none have worked. Does anyone have a working solution?
1 Like
Hi @JGWILLIE
you can try this solution.
Hi @JGWILLIE ,
Please follow the instructions below.
- From your Admin Page, click Online Store > Themes >Actions > Edit code
- In the Section folder, open the image-banner.liquid
- Find the {{ block.settings.heading | escape }},(refer to image below to where the code is), and replace it with the code below
{% assign headings = block.settings.heading | split: "|" %}
{% for heading in headings %}
{{ heading | escape }}
{% endfor %}
- Then click SAVE
The code should look like this.
- Go to the theme editor, and whenever you want a line break, place a pipeline | in between. It is the key above the ** in your keyboard. See image below
Hello everyone. Is there a way to add a code so I can use that feature in all kind of text boxes of my website? Or do I have to add a different code in each different heading, text box, sub-text etc. That should be a basic feature of all themes in my opinion.



