Reduce the font size of hero banner on mobile

Solved

Reduce the font size of hero banner on mobile

liu_x_trujillo1
Excursionist
26 0 11

Hi, I'd like to reduce the font side of the headline of hero banner to make it into one line. Please help!

image_123650291.JPG

 

My website is embroidtale.com

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
8375 2001 2461

This is an accepted solution.

Hi @liu_x_trujillo1 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

 

@media only screen and (max-width: 439px){
#shopify-section-template--23250736480574__a1a2eb2f-cb49-4435-b6db-7adbb14503c4 .h1 {
    font-size: 15px; 
}
}

 

 

And Save. 

Result:

Made4uoRibe_0-1726608069410.png

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
8375 2001 2461

This is an accepted solution.

Hi @liu_x_trujillo1 

Check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

 

@media only screen and (max-width: 439px){
#shopify-section-template--23250736480574__a1a2eb2f-cb49-4435-b6db-7adbb14503c4 .h1 {
    font-size: 15px; 
}
}

 

 

And Save. 

Result:

Made4uoRibe_0-1726608069410.png

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

made4Uo
Shopify Partner
3851 717 1195

Hi @liu_x_trujillo1,

 

I see you change your banner font to 22px. That is not really the best approach since you end up with a small font on desktop. Your banner need to be catchy. Please use the code below instead to make this responsive to screen size. 

!. From you Admin page, go to Online Store > Themes
2. Select the theme you want to edit
3. Under the Asset folder, open the theme.css
4. Then place the code below at the very bottom of the file

#shopify-section-template--23250736480574__a1a2eb2f-cb49-4435-b6db-7adbb14503c4 .prose > .h1 {
    font-size: clamp(19px, 3vw, 40px);
}



If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free

Made4uo-Ribe
Shopify Partner
8375 2001 2461

Actually use made4uo's code, that's a good approach.

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.