Can anyone please help me out? I’m trying to include a line break in the main header of my website where it says " Time to spoil yourself: A little or a lot…". I need to make it as the following:
"Time to spoil yourself:
A little or a lot…"
Not much idea about coding so anything would be helpful. Thanks!
Alternatively, if you want to change the code, here is how to do it.
Go to Online Store → Themes → Edit Code → Sections → Image-banner.liquid.
Search for “type”: “heading”,
Under Settings → Type; change “text” to “richtext”.
Delete { “default”: “Image banner”,}
Then Search for {{ block.settings.heading | escape }} and Replace this with
{{ block.settings.heading }}
This should do the trick. But, please note that, since we changed code on liquid file, everytime you add Image Banner section, you will get Rich Text Box instead of regular box on Theme Editor.
Thanks.
Please mark this solution as accepted solution if this solves your problem.
I followed your instruction and it’s working well when I edited it directly in the shopify editor. However when I edited it locally as a theme template and uploaded it to our store the homepage returned 404 error.
What do you think is the problem here and how to solve this error.