Solved

Dawn theme: Homepage h1 insert line break

Sugarandlayer
Tourist
3 0 1

Hello

 

I am using the dawn theme and wondering how to add a line break in the h1 in the top banner. 

https://sugarandlayer.com/

So the current heading is formatted like: 

Sugar & Layer Cake Company. A
passion for all things CAKE.

 

But I want it formatted so the A starts on the second line:

 

Sugar & Layer Cake Company.

A passion for all things CAKE.

 

I understand I have to edit CSS but I am not a web developer so unsure on which css and the code to use. 

 

Any help would be greatly appreciated. 

 

Thanks

 

 

Accepted Solutions (2)

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

Hii, @Sugarandlayer 
Paste this code on top of the section-image-banner.css file.

@media only screen and (min-width: 992px) {
h2.banner__heading.h0 {
    width: 655px !important;
}
}

Thank You.

View solution in original post

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

@Sugarandlayer 
For mobile view paste this code on top of the section-image-banner.css file.

@media screen and (max-width: 749px){
h2.banner__heading.h0 {
    width: 96% !important;
}
}

Thank You.

View solution in original post

Replies 6 (6)

Zworthkey
Shopify Partner
5581 642 1567

@Sugarandlayer 

Add the <br> in the text.
it means line break

Sugarandlayer
Tourist
3 0 1

Tried that it didn't work as it's just a in a field rather than a wysywig editor with code view. Thanks though!

dmwwebartisan
Shopify Partner
12289 2547 3698

@Sugarandlayer 

please Go to Online Store->Theme->Edit code then go to assets/base.css ->paste below code at the bottom of the file. 

@media screen and (min-width: 750px){
.banner--desktop-transparent .banner__box { max-width: 72rem !important;}
}

Hope this work.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

Hii, @Sugarandlayer 
Paste this code on top of the section-image-banner.css file.

@media only screen and (min-width: 992px) {
h2.banner__heading.h0 {
    width: 655px !important;
}
}

Thank You.

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

@Sugarandlayer 
For mobile view paste this code on top of the section-image-banner.css file.

@media screen and (max-width: 749px){
h2.banner__heading.h0 {
    width: 96% !important;
}
}

Thank You.

Sugarandlayer
Tourist
3 0 1

amazing. thank you so much! 🙂