Using Dawn’s Email Signup Banner section, need to split the heading over two lines, but
is stripped Tried:
<br/> (not allowed in schema/richtext)
- Changing
type to textarea plus newline_to_br (still renders “\n”)
- Adding a second heading block (blocks limited/ignored)
Nothing works. What’s the recommended way to get a hard line break in a section heading?
Have you tried to use this
?
Or please share the link to your page?
Hi Parampreet,
Thank you for your response, I have tried it, it does not seem to work. The following is my updated code.
{%- when ‘heading’ -%}
“blocks”: [
{
“type”: “heading”,
“name”: “t:sections.email-signup-banner.blocks.heading.name”,
“settings”: [
{
“type”: “text”,
“id”: “heading”,
“default”: “t:sections.email-signup-banner.blocks.heading.settings.heading.default”,
“label”: “t:sections.email-signup-banner.blocks.heading.settings.heading.label”
},
and:
{{ block.settings.heading | replace: ’ | ', ‘
’ }}
{%- when 'paragraph' -%}
I wonder if you can help me take a look?
thank you!