All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Using Dawn’s Email Signup Banner section, need to split the heading over two lines, but <br/> 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?
Solved! Go to the solution
This is an accepted solution.
Have you tried to use this </br>?
Or please share the link to your page?
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This is an accepted solution.
Have you tried to use this </br>?
Or please share the link to your page?
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
This </br> works!
Thank you!
You are very welcome!
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
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' -%}
<h2 class="email-signup-banner__heading {{ block.settings.heading_size }}" {{ block.shopify_attributes }}>
"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: ' | ', '<br>' }}
</h2>
{%- when 'paragraph' -%}
I wonder if you can help me take a look?
thank you!