I’m looking to add a line break to the heading text on my password page. How do I go about it?
I was able to implement it like this but I don’t think this is the write way to go about it.
I just replaced {{ section.settings.newsletter_form_heading }}
#### {{ section.settings.newsletter_form_heading }}
with my text and the
#### the choices we make today
make who we are tomorrow
Would love to know if there’s a better way of going about it.
For the question as is yes, that is how you can use a
in a heading.
But your example shows you are hardcoding a value in a theme file instead and gutting a setting removing future flexibility and requiring any future changes to be done in the theme code editor instead of the visual designer with clear settings.
You should be able to enter the text string directly into the settings box and let the theme insert it: “the choices we make today
make who we are tomorrow”, otherwise you may need to change the settings schema type to accept html tags.
Also another valid and more consistent way is to use spans around the text intended to have line breaks
# Line 1 Line 2
As this also gives greater style control over those additional “lines” such as indentation, font size to seem like subheadings, or be responsively hidden on smaller devices to conserve screen real estate etc