Have your say in Community Polls: What was/is your greatest motivation to start your own business?

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

Solved

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

abailea077
Excursionist
44 0 16

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.Question 10.jpgQuestion 10b.jpg

 

 

 

 

Thnak you in advance!

Accepted Solution (1)

Moeed
Shopify Partner
6326 1715 2068

This is an accepted solution.

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 </body> tag

<style>
@media screen and (max-width: 767px) {
h2.image-hero__text-container-heading.ff-heading.fs-heading-display-2.section-blocks__heading {
    font-size: 40px !important;
    padding: 5px 30px !important;
}
}
</style>

RESULT:

Moeed_0-1725299161057.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 4 (4)

Moeed
Shopify Partner
6326 1715 2068

This is an accepted solution.

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 </body> tag

<style>
@media screen and (max-width: 767px) {
h2.image-hero__text-container-heading.ff-heading.fs-heading-display-2.section-blocks__heading {
    font-size: 40px !important;
    padding: 5px 30px !important;
}
}
</style>

RESULT:

Moeed_0-1725299161057.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


abailea077
Excursionist
44 0 16

Thank you so much! This was very helpfull!

Moeed
Shopify Partner
6326 1715 2068

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.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Made4uo-Ribe
Shopify Partner
9069 2166 2673

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:

Made4uoRibe_0-1725303143562.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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.