Jump to content

Adding custom font to cover page (title only)

Recommended Posts

Site URL: http://www.cassiemayfield.com

Hi all! I'm trying to get a custom font added to the cover page of my site, but only for my title. The body and button can stay the same. I'm pretty new to coding (mostly just do copy paste formats). So when I change the font, it changes for everything not just the Title.

Here's the code I'm using: 

<style>
  @font-face {    
    font-family: The Bambank Script;       
    src: url('https://static1.squarespace.com/static/584651fb2e69cfe01a34aef4/t/6113f83f385b3c55f34a7327/1628698687621/The+Bambank+Script.otf') format(opentype);  
  }
  * {
          font-family: The Bambank Script !important;
  }
</style>

 

Yet it makes everything the font. Not just the Title. Anyone have any idea how to help?

Screen Shot 2021-08-26 at 8.39.28 PM.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.