Jump to content

Custom Font CSS

Recommended Posts

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
  • Replies 1
  • Views 633
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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...

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.