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?
Adding custom font to cover page (title only)
in Customize with code
Posted
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?