How to decrease my image hero font but only on mobile version?

Hello guys!

My image hero text has the right size for the desktop version but for the mobile version it goes on 2 lines and it’s awfull!

What is the code to reduce de size of the font but only for the mobile version please!

The image hero is on the Catering secti

URL:

https://toroeatstreats.com/

Password: brayden

Here are some images with the example of what it does on desktop version and on mobile version.

Thnak you in advance!

1 Like

Hey @abailea077

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hi @abailea077

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: 350px){
#shopify-section-template--23117743325485__image_hero_kcGQPH h2 {
    font-size: 40px !important;
}

And Save.

Result:

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

Thank you so much! This was very helpfull!

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.