Jump to content

Custom font doesn't display properly in forms

Go to solution Solved by tuanphan,

Recommended Posts

Posted (edited)

Hi! 

I've tried to apply custom fonts to my contact form, which is working except from the "Caption" which displays differently. I want everything to be in the same font. 

URL: https://okra-synthesizer-r6lk.squarespace.com/kontakt
PW: LeneSchmidt 

Here's the code I've added to customize the form: 

 

.form-wrapper .field-list .title {
  font-family: 'apercu-regular-pro';
  font-size: 10px;
  text-transform: uppercase;
}

.form-wrapper .field-list .field .caption {
  font-family: 'apercu-regular-pro';
  font-size: 10px;
}


.form-wrapper .react-form-contents .field-list .title .required, .form-wrapper .react-form-contents .field-list .fields .description.required {
  visibility: hidden;  
}
.form-wrapper .react-form-contents .field-list .title .required:before, .form-wrapper .react-form-contents .field-list .fields .description.required:before {
  visibility: visible;  
  content: "*"; 
  font-family: "apercu-regular-pro";
  font-size: 1.5em;
  line-height: 1em;
}
.form-wrapper .react-form-contents--submitted .required:before {
  visibility: hidden!important;
}

Skærmbillede 2024-05-22 kl. 09.18.57.png

Edited by CamillaZ
Link to comment
  • Replies 1
  • Views 971
  • 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.