Jump to content

Can't apply styling to non-active contact form fields

Go to solution Solved by paul2009,

Recommended Posts

Not sure what i'm doing wrong here, I'm using css to change appearance of the form fields on contact page but it doesn't seem to be working.

Quote

CODE THAT IS NOT WORKING
// Form Fields
.form-wrapper .field-list .field .field-element {
  background-color: #000 !important;
  border: 1px solid #333 !important;
  color: #fff !important;
  outline: none !important;
}

 

I use this code which works on the fields when active etc but normal state fields I cannot seem to get them to change.. 

Quote

// Form Fields Active
.form-wrapper .field-list input:focus, .form-wrapper .field-list textarea:focus {
  background-color: #000;
  border: 1px solid #333;
  color: #fff;
  outline: none;
}
// Dropdown Fields
.form-wrapper .field-list .field select {
  padding: 10px;
  background-color: #000;
  border: 1px solid #333;
  color: #fff;
  margin: 0 0 30px;
  outline: none;
}

I'm trying to achieve all fields to look the same in all states other than active when the border is bright white. 

Help appreciated thanks 🙂https://www.desnoir.studio/contact

Link to comment
  • Solution
2 hours ago, Desnoir said:

Not sure what i'm doing wrong here, I'm using css to change appearance of the form fields on contact page but it doesn't seem to be working.

Quote

CODE THAT IS NOT WORKING
// Form Fields
.form-wrapper .field-list .field .field-element {

Your first block of CSS isn't working because it is using old classes that don't exist on the new Form Block. Squarespace replaced the old Form Block in May 2023, so instead of:

.form-wrapper .field-list .field .field-element

...you'll want to use something like:

.form-wrapper .field-list .form-item input 

Did this help? Please give feedback by clicking an icon below  ⬇️

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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.