Desnoir Posted May 12 Share Posted May 12 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 paul2009 Posted May 12 Solution Share Posted May 12 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 ⬇️ PartTwoDesign 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Desnoir Posted May 16 Author Share Posted May 16 Thank you so much @paul2009 🙏🏻 that has worked perfectly. For anyone else who might see this I also used .field-list textarea {} for the large form fields. PartTwoDesign and paul2009 1 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment