Homepage Heading Desktop vs. Mobile

Solved

Homepage Heading Desktop vs. Mobile

wymonster
Tourist
7 0 1

Is there any code I can use so my heading on my homepage doesn't get reformatted on Mobile?


Desktop:

wymonster_1-1730367005102.png

 

Mobile:

wymonster_0-1730366984153.png

 

Accepted Solution (1)
NovakNorth906
Shopify Partner
41 4 5

This is an accepted solution.

@wymonster Here is what you should do:

  1. Online store
  2. Find theme > customize
  3. Select that section
  4. Bottom of section settings add this in custom css

 

@media screen and (max-width: 767px) {
  h2 {
    font-size: 25px;
  }
}

 

See screenshot below:

NovakNorth906_0-1730482540702.png

 

 

If this helped please make sure to  like it and mark it as solution

 

Kind regards,

Mark

View solution in original post

Replies 9 (9)

Moeed
Shopify Partner
7472 2022 2482

Hey @wymonster 

 

Share your Store URL and Password if enabled.

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


NovakNorth906
Shopify Partner
41 4 5

Hi @wymonster ! There are a couple things that could help fix this. Could you please share your store URL and password if required?

Kind regards,

Mark

wymonster
Tourist
7 0 1

I am not willing to give someone access to the backend of my website

NovakNorth906
Shopify Partner
41 4 5

@wymonster Sorry for the misunderstanding, that is not what I was asking. Essentially what I am asking is if you could share a "preview" URL to view the frontend of your site. Sometimes stores that are still in development mode have a preview that is password restricted. This is completely separate from your back end.

 

wymonster
Tourist
7 0 1

Thank you for clarifying! And my website is live: www.wyldyears.com

Moeed
Shopify Partner
7472 2022 2482

Hey @wymonster 

 

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.banner__heading.inline-richtext.h0 {
    font-size: 25px !important;
}
}
</style>

NOTE: Adjust this font size accordingly to however you like

RESULT:

Moeed_0-1730482146689.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


NovakNorth906
Shopify Partner
41 4 5

@Moeed Wouldn't it be better to add via custom CSS section setting?

NovakNorth906
Shopify Partner
41 4 5

This is an accepted solution.

@wymonster Here is what you should do:

  1. Online store
  2. Find theme > customize
  3. Select that section
  4. Bottom of section settings add this in custom css

 

@media screen and (max-width: 767px) {
  h2 {
    font-size: 25px;
  }
}

 

See screenshot below:

NovakNorth906_0-1730482540702.png

 

 

If this helped please make sure to  like it and mark it as solution

 

Kind regards,

Mark

wymonster
Tourist
7 0 1

Thank you!