Jump to content

My custom CSS code not working on other screens.

Go to solution Solved by melody495,

Recommended Posts

Hi, I have zero knowledge of coding, but I wanted to custom change the font across my website.

I have the following code in the custom CSS window:

@font-face {

    font-family: 'Mona Sans';

       src: url('FontURLhttps://static1.squarespace.com/static/654be898a0e99642a3023894/t/65551e86203db543e89a0be9/1700077190867/Mona-Sans-Medium.otf');

  }

h1 {font-family: 'Mona Sans' !important;}
h2 {font-family: 'Mona Sans' !important;}
h3 {font-family: 'Mona Sans' !important;}
h4 {font-family: 'Mona Sans' !important;}
p {font-family: 'Mona Sans' !important;}

 

...and it shows up like this on my screen.image.thumb.png.ed38e3a6315bbe7a9a8da60fbe7f1206.png

 

But it doesn't reflect the change on other screens (shows up as a serif font instead).

Any help would be SUPER appreciated!!

Link to comment
  • Replies 3
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
26 minutes ago, kellsung15 said:

@font-face {

    font-family: 'Mona Sans';

       src: url('FontURLhttps://static1.squarespace.com/static/654be898a0e99642a3023894/t/65551e86203db543e89a0be9/1700077190867/Mona-Sans-Medium.otf');

  }

h1 {font-family: 'Mona Sans' !important;}
h2 {font-family: 'Mona Sans' !important;}
h3 {font-family: 'Mona Sans' !important;}
h4 {font-family: 'Mona Sans' !important;}
p {font-family: 'Mona Sans' !important;}

Hi @kellsung15 you're almost there! There is some extra text in your URL line. Remove "FontURL", leaving only from "https://...", then it should work. Let me know how it goes.

image.thumb.png.8d97cc723066da4539ecffb5d4bd6226.png

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

Link to comment

@kellsung15 you're welcome! glad it worked

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

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.