Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Custom Font CSS


mjp2892

Question

Site URL: https://www.madisonpapp.com/

Hi! I am working within a new template (going beyond the landing page on my website)...

I am trying to upload some custom fonts using CSS and it is not working... any ideas? The font on H1 is Roboto and is not shifting to Reey with the code below

 


@font-face {
font-family: 'Reey-Regular';  
src: url(https://static1.squarespace.com/static/5c364fe0cc8feda148eb5ce4/t/61686a3101db57695436dde4/1634232882067/Reey-Regular.otf), url(https://static1.squarespace.com/static/5c364fe0cc8feda148eb5ce4/t/6168707da89e9254156cb854/1634234493849/Reey-Regular.woff), url(https://static1.squarespace.com/static/5c364fe0cc8feda148eb5ce4/t/61687086bbcf2c04c957eb55/1634234502377/Reey-Regular.woff2);
}


h1{
font-family: 'Reey-Regular';
}

Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

1 answer to this question

Recommended Posts

  • 0
On 10/15/2021 at 2:02 AM, mjp2892 said:

Site URL: https://www.madisonpapp.com/

Hi! I am working within a new template (going beyond the landing page on my website)...

I am trying to upload some custom fonts using CSS and it is not working... any ideas? The font on H1 is Roboto and is not shifting to Reey with the code below

 


@font-face {
font-family: 'Reey-Regular';  
src: url(https://static1.squarespace.com/static/5c364fe0cc8feda148eb5ce4/t/61686a3101db57695436dde4/1634232882067/Reey-Regular.otf), url(https://static1.squarespace.com/static/5c364fe0cc8feda148eb5ce4/t/6168707da89e9254156cb854/1634234493849/Reey-Regular.woff), url(https://static1.squarespace.com/static/5c364fe0cc8feda148eb5ce4/t/61687086bbcf2c04c957eb55/1634234502377/Reey-Regular.woff2);
}


h1{
font-family: 'Reey-Regular';
}

Your specific style for h1 is overwritten by a higher priority.

image.thumb.png.7e17932dbce0867f3dd75b307a1fb355.png

Therefore, if you want style for general h1 tag, include the !important to your style css, or use the same selector to overwrite the target selected item

image.thumb.png.6be2a0fc4b796d9f18da9929097d460e.png

Support me by pressing 👍 if this useful for you

Edited by bangank36

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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