Jump to content

Changing Site Title & Other Fonts with CSS

Go to solution Solved by Ziggy,

Recommended Posts

Posted (edited)

Hello internet! I'm currently changing one of my fonts across my website with CSS & I am having trouble doing the following:

  1. Changing the site title font to Palm Canyon Drive Regular (code screenshot number 1)
  2. Changing what I assumed to be one of the header styles on my site from Lust to Palm Canyon Drive Regular (code screenshot number 2 showing h1 & h2, along with screenshot of website section showing the 2 different font styles I currently have for headers).

I've tried a variety of codes I've found on the forums for both issues & have had no success. My website is https://celestevedette.com.

Any help would be greatly appreciated. I've been at this for awhile & have scoured the internet with no solutions.

Screenshot 2024-01-08 at 4.27.18 PM.png

Screenshot 2024-01-08 at 4.27.56 PM.png

Screenshot 2024-01-08 at 4.30.09 PM.png

Edited by CelesteV
Posted
1 minute ago, CelesteV said:

Hello internet! I'm currently changing one of my fonts across my website with CSS & I am having trouble doing the following:

  1. Changing the site title font to Palm Canyon Drive Regular (code screenshot number 1)
  2. Changing what I assumed to be one of the header styles on my site from Lust to Palm Canyon Drive Regular (code screenshot number 2 showing h1 & h2, along with screenshot of website section showing the 2 different font styles I currently have for headers).

I've tried a variety of codes I've found on the forums for both issues & have had no success.

Any help would be greatly appreciated. I've been at this for awhile & have scoured the internet with no solutions.

Screenshot 2024-01-08 at 4.27.18 PM.png

Screenshot 2024-01-08 at 4.27.56 PM.png

Screenshot 2024-01-08 at 4.30.09 PM.png

Hi @CelesteV

Can you provide the URL of your site (+ password if it is not yet live) so the community can help you better.

L

  • Solution
Posted

This is what you need for the site title:

.has-site-title .Header-branding, .has-site-title .Mobile-bar-branding {
  font-family: 'Palm Canyon Drive Regular';
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • 10 months later...
Posted

I am also having a hard time getting the CSS code to work. I want to upload two fonts to use across the site and I keep getting an error. Can you help me with the correct coding? 

Posted
24 minutes ago, GinaMF said:

I am also having a hard time getting the CSS code to work. I want to upload two fonts to use across the site and I keep getting an error. Can you help me with the correct coding? 

Can you share a few details? Your website URL and the code you are using?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
On 11/29/2024 at 11:20 AM, Ziggy said:

Can you share a few details? Your website URL and the code you are using?

Website is eagle-antelope-aykx.squarespace.com and password is goodies. If I put the code in will the font also show up in the font list when I go to change the fonts selected? Thank you! 

 

// CUSTOM FONT

@font-face {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';

src: url();

}

 

h1 {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';}


h2 {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';}


h3 {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';}


h4 {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';}


.sqsrte-large {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/674204ba5d5bec25d638014e/1732379834965/fonnts.com-Apparat_Black_Italic.otf';}

p {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/674b3267676dad6c86f80336/1732981351633/fonnts.com-ApparatCond_Regular.otf';}


.sqsrte-small {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/674b3267676dad6c86f80336/1732981351633/fonnts.com-ApparatCond_Regular.otf'}

Posted
6 hours ago, GinaMF said:

Website is eagle-antelope-aykx.squarespace.com and password is goodies. If I put the code in will the font also show up in the font list when I go to change the fonts selected? Thank you! 

 

// CUSTOM FONT

@font-face {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';

src: url();

}

 

h1 {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';}


h2 {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';}


h3 {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';}


h4 {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf';}


.sqsrte-large {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/674204ba5d5bec25d638014e/1732379834965/fonnts.com-Apparat_Black_Italic.otf';}

p {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/674b3267676dad6c86f80336/1732981351633/fonnts.com-ApparatCond_Regular.otf';}


.sqsrte-small {

font-family: 'https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/674b3267676dad6c86f80336/1732981351633/fonnts.com-ApparatCond_Regular.otf'}

The code should be

@font-face {
	font-family: Fontspring;
	src: url(https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/6749e2e2ffa1ba4b6e01b285/1732895458113/Fontspring-DEMO-theseasons-reg.otf);
}
h1, h2, h3, h4 {
	font-family: Fontspring !important;
}
@font-face {
	font-family: Apparat-Black;
	src: url(https://static1.squarespace.com/static/67123fc06307f40a31820c41/t/674204ba5d5bec25d638014e/1732379834965/fonnts.com-Apparat_Black_Italic.otf);
}

p, p * {
	font-family: Apparat-Black !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted
12 hours ago, GinaMF said:

If I put the code in will the font also show up in the font list when I go to change the fonts selected?

No, you can apply the font to headings and paragraphs in CSS, but adding the font will not allow it to show up in the styles font list.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.