Jump to content

I have custom font with custom css but everything works fine when i am on desktop version on mobile version it changes to stqndard font

Recommended Posts

  • Replies 6
  • Views 404
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

.header-title-text {
  font-family:'Archive Bold TTF';
    font-size: 30px !important;
}

This where i specify my font

 

Posted
10 hours ago, tuanphan said:

Can you share site url or provide all code you added to CSS box?

/* New below*/
@font-face {
  font-family: 'Archive Regular';
  src: url('https://static1.squarespace.com/static/66f07c2b83777000d864e28f/t/67053a760d01345bd7438166/1728395895175/archive-regular-pro.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'Archive Italic';
  src: url('https://static1.squarespace.com/static/66f07c2b83777000d864e28f/t/67053a7d59728e5ec49b3d30/1728395901767/archive-regular-italic-pro.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


 


@font-face {
  font-family: 'Archive Bold';
  src: url('https://static1.squarespace.com/static/66f07c2b83777000d864e28f/t/67053a83afa30b5683f1c725/1728395908022/archive-bold-pro.otf');
}
@font-face {
  font-family: 'Archive Bold TTF';
  src: url('https://static1.squarespace.com/static/66f07c2b83777000d864e28f/t/67054060720c854b984248c9/1728397409498/archive-bold-pro.ttf');
}

 

 


.header-title-text {
  font-family:'Archive Bold TTF';
    font-size: 30px !important;
}

body, p1, p2, p {
  font-family: 'Archive Regular', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archive Bold', sans-serif;
}

em, i {
  font-family: 'Archive Italic', sans-serif;
}

Posted
8 hours ago, Rache said:

Hi @vas it seems there are some issues with the @font-face rule. For example, since the file is "otf", the format should be "opentype"

CleanShot2024-10-19at21_49.56@2x.thumb.png.a006c4f990932ba369847ec86d281189.pngYou may also consider using this method to easily apply custom fonts across all headings and paragraph: Add Custom Fonts to Squarespace ↗

 

 

I did that still the same issue how it was listed before

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.