Jump to content

How to customize button fonts on contact forms?

Recommended Posts

Use this code

@font-face {
font-family: 'font-name';
src: url(upload your font file to squarespace and insert font url here);

/* Contact Page - Contact Form */
div.form-block * {
    font-family: 'font-name' !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!)

Link to comment

Hey, it's not working:

Only one of the custom fonts is working (Gilroy-Meduim). 

The second font (TR-909) was working initially, but is no longer working.

I have tried to reupload the font.

Maybe it has to do with my other CSS?

I have uploaded your suggestion.

Any assistance would be appreciated

 

@font-face {
  font-family: 'Gilroy-Medium';
  src: url(https://static1.squarespace.com/static/64dd22a529ad6406a072bf80/t/65459ea1136a786901d3a4c0/1699061409261/Gilroy-Medium.ttf) format('truetype');
}

@font-face {
  font-family: 'TR-909';
  src: url(https://static1.squarespace.com/static/64dd22a529ad6406a072bf80/t/65459ea35a2091267abcc8e4/1699061411786/TR-909.ttf) format('truetype');
}

h1, h2, h3, h4, h5, p {
  font-family: 'Gilroy-Medium';
}

/* Contact Page - Contact Form */
div.form-block * {
    font-family: 'font-name' !important;
}

.sqs-block-button-container, input.button.sqs-system-button.sqs-editable-button {
  font-family: 'TR-909' !important;
}

 

Link to comment
20 minutes ago, thereal_ay_ay_ron said:

Hey, it's not working:

 

Hi, missing single quote around the url. Try replacing with the below

@font-face {
  font-family: 'Gilroy-Medium';
  src: url('https://static1.squarespace.com/static/64dd22a529ad6406a072bf80/t/65459ea1136a786901d3a4c0/1699061409261/Gilroy-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'TR-909';
  src: url('https://static1.squarespace.com/static/64dd22a529ad6406a072bf80/t/65459ea35a2091267abcc8e4/1699061411786/TR-909.ttf') format('truetype');
}

 

Not sure what font you want to use, but need to replace 'font-name' what with you want

/* Contact Page - Contact Form */
div.form-block * {
    font-family: 'font-name' !important;
}

 

Let me know how it goes

-------- > 👆 <---------- 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

The missing quotes helped! Thanks for your assistance.

The thing is the are still not showing the desired fonts:

 

.sqs-block-button-container, input.button.sqs-system-button.sqs-editable-button {
  font-family: 'TR-909' !important;
}

 

SO I CHANGE IT TO THIS:
 

.sqs-block-button .sqs-block-button-element--medium{
  font-family: 'TR-909' !important;
}


^^^ NOW the font is showing up on all buttons throughout the website.



This code changed the entire contact form to one font.

Goal is to have the form content to one font ('Gilroy-Medium') and the button to be another font ('TR-909'):

/* Contact Page - Contact Form */
div.form-block * {
    font-family: 'TR-909' !important;
}

 

Edited by thereal_ay_ay_ron
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.