Shopify themes, liquid, logos, and UX
Hello everyone, im trying to add a line breaker to both heading and text in the image banner sections in my store
I've seen two discussions concerning this feature here on the forums, but they don't seem to work, probably cause the image-banner.liquid has been updated since they were posted.
https://community.shopify.com/c/shopify-design/dawn-theme-line-break-image-banner-text/m-p/1722919
Solved! Go to the solution
This is an accepted solution.
Hi @Dabou in the image-banner.liquid file find the blocks settings and inside that increase the limit for heading and text blocks, currently it is set to one by default, just change that to 2 or 3 as per your need.
then you can add headings and text that will be on new line. to reduce the space between headings add this css to the section custom css box on customizer
.banner__heading{
margin-top:0;
}
This is an accepted solution.
add this for subheadings
.banner__text:not(:first-child) {
margin-top: 0;
}
This is an accepted solution.
Hi @Dabou in the image-banner.liquid file find the blocks settings and inside that increase the limit for heading and text blocks, currently it is set to one by default, just change that to 2 or 3 as per your need.
then you can add headings and text that will be on new line. to reduce the space between headings add this css to the section custom css box on customizer
.banner__heading{
margin-top:0;
}
@Ahsan_ANC that worked thanks.
This is an accepted solution.
add this for subheadings
.banner__text:not(:first-child) {
margin-top: 0;
}
@Ahsan_ANC thank you.
Hi Ahsan, this hasn't worked for me. Any advice please?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024