Jump to content

Custom CSS font NOT working on mobile

Recommended Posts

Site URL: https://givetocec.org

 

Hi everyone! I am currently working on a website for a client. I have run into an issue with custom CSS fonts.

The custom font family that I'm using (Gotham Black, Gotham Bold, Gotham Medium) is working completely fine on desktop, for some reason, it's not showing up on mobile. Instead of displaying any of the Gotham fonts, it displays a serif font. I've tried to trouble shoot by adding 
!important to the code but that doesn't do anything either.

Any tips or suggestions about how I could fix this? 


For reference, here is the custom CSS I am using. I have also uploaded screenshots for reference of what the fonts look like. 

h1 {
    font-family: 'Gotham-Black';
    font-weight: 700;
    font-style: normal;
    font-size: 72px;
    letter-spacing: 0.0em;
    text-transform: uppercase;
    line-height: .9em;
}

h2 {
    font-family: 'Gotham-Bold';
}

h4 {
    font-family: 'Gotham-Bold';
    text-transform: uppercase;
    font-size: 28px;
}

P {
    font-family: 'Gotham-Medium';
    line-height: .9em;
}
 

Screenshot 2024-09-19 at 1.19.49 PM.png

IMG_2932.PNG

Link to comment
  • Replies 2
  • Views 352
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 9/20/2024 at 12:27 AM, OstromCreative said:

Site URL: https://givetocec.org

 

Hi everyone! I am currently working on a website for a client. I have run into an issue with custom CSS fonts.

The custom font family that I'm using (Gotham Black, Gotham Bold, Gotham Medium) is working completely fine on desktop, for some reason, it's not showing up on mobile. Instead of displaying any of the Gotham fonts, it displays a serif font. I've tried to trouble shoot by adding 
!important to the code but that doesn't do anything either.

Any tips or suggestions about how I could fix this? 


For reference, here is the custom CSS I am using. I have also uploaded screenshots for reference of what the fonts look like. 

h1 {
    font-family: 'Gotham-Black';
    font-weight: 700;
    font-style: normal;
    font-size: 72px;
    letter-spacing: 0.0em;
    text-transform: uppercase;
    line-height: .9em;
}

h2 {
    font-family: 'Gotham-Bold';
}

h4 {
    font-family: 'Gotham-Bold';
    text-transform: uppercase;
    font-size: 28px;
}

P {
    font-family: 'Gotham-Medium';
    line-height: .9em;
}
 

Screenshot 2024-09-19 at 1.19.49 PM.png

IMG_2932.PNG

Can you try with this code?

h1 {
  font-family: 'Gotham-Black' !important;
  font-weight: 700;
  font-style: normal;
  font-size: 72px;
  letter-spacing: 0.0em;
  text-transform: uppercase;
  line-height: .9em;
}

h2 {
  font-family: 'Gotham-Bold' !important;
}

h4 {
  font-family: 'Gotham-Bold' !important;
  text-transform: uppercase;
  font-size: 28px;
}

P {
  font-family: 'Gotham-Medium' !important;
  line-height: .9em;
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.