Shopify themes, liquid, logos, and UX
Hi, im building a store using theme Dawn, in slideshow, i want to use multiple lines for my subheading, how can I start new lines? or is it easier to add more subheadings below the default one? it serves the same purpose.
Also, how can we customize the text size/style in heading and subheadings?
I have the same problem: <br> tags are not allowed in subheadings!
Finally I found a workaround: write \n wherever I want to add a line break.
Edit slideshow.liquid in the sections folder as follows :
{%- if block.settings.subheading != blank -%}
<div class="banner__text rte" {{ block.shopify_attributes }}>
<p>{{ block.settings.subheading | newline_to_br }}</p> {% comment %}added newline_to_br to transform \n into <br> {% endcomment %}
</div>
{%- endif -%}
seems to be working...
forgot to mention : \n shall be put directly into the json file of your page
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025