Jump to content

Change header title text with custom font

Go to solution Solved by tuanphan,

Recommended Posts

Hi, I only want to change the font of my header title text.

I've put this code but it doesn't work:

@font-face { font-family: 'Windsor'; src: url('https://static1.squarespace.com/static/6461e882d28f3c73af141e8d/t/6461ffc0b409d5032eacc837/1684144065109/WindsorDUltHea.otf'); }

header-title-text { font-family: 'Windsor'; }

header-title-text { font-family: 'Windsor' !important; }

 

What can I do?

 

web: www.molsataller.com
password: molsa2023

Captura de pantalla 2023-07-04 a les 13.54.19.png

Link to comment

Replace your CSS with this:

@font-face { 
  font-family: 'Windsor'; 
  src: url('https://static1.squarespace.com/static/6461e882d28f3c73af141e8d/t/6461ffc0b409d5032eacc837/1684144065109/WindsorDUltHea.otf'); 
}
.header-title-text {
  font-family: 'Windsor'; 
}

Let me know if that works for you.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment
  • Solution
20 hours ago, eduvila said:

And do you know why now text-logo is a litle bit down?

Captura de pantalla 2023-07-04 a les 14.27.43.png

Because your font, the custom font caused this. If you change to another font, the problem will be fixed itself.

But you can add this to Design > Custom CSS to move it up a bit

a#site-title {
    position: relative;
    top: -10px;
    font-family: 'Windsor';
}

 

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!)

Link to comment

Try adding this to Custom CSS:

.header-display-mobile .header-title-text {
  font-family: 'Windsor';
}

 

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

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.