Jump to content

Custom Product Form CSS

Go to solution Solved by justinjamesclack,

Recommended Posts

46 minutes ago, DreamrW said:

I need to improve the styling of the custom product forms I'm using on a new site. I'd like them to match the font at used on the site at the very least. 

https://aqua-chicory-eks4.squarespace.com/membership-shop/p/youth-membership

pw: Doon24

Thanks in advance!

Screenshot 2024-03-26 at 16.28.17.png

So to target the font on this form you would need to use the following code;

.sqs-modal-lightbox-content .lightbox-inner .lightbox-content .form-wrapper {

color: #222222 !important;

font-family: 'insert font family here' !important;

}

Link to comment
3 hours ago, justinjamesclack said:

What other changes did you have in mind?

That worked great, thank you! I'm wondering if it's possible to have different font types/sizes/weights throughout the form?

I'd also love to know if I can add a hyper link in the form to a third party e-signature app? 

Link to comment
  • Solution
4 minutes ago, DreamrW said:

That worked great, thank you! I'm wondering if it's possible to have different font types/sizes/weights throughout the form?

I'd also love to know if I can add a hyper link in the form to a third party e-signature app? 

what text's are you trying to trigger? 

For the field title (e.g. Name) you'd target this;

.sqs-async-form-content .form-wrapper .field-list .title {

font-family: 'insert font family' !important;

font-size: 24px !important; //change font size//

font-weight: 500 ; //change bold size//
}


for the caption text (e.g. address 1) you'd target this;

.sqs-async-form-content .form-wrapper .field-list .field .caption {

font-family: 'insert font family' !important;

font-size: 18px !important; //change font size//

font-weight: 500 ; //change bold size//
}


 

For the description (e.g. the grey 'if you have a transponder' text) you'd target this;

.sqs-async-form-content .form-wrapper .field-list .description {

font-family: 'insert font family' !important;

font-size: 24px !important; //change font size//

font-weight: 500 ; //change bold size//

color: #5FB2F7 !important;
}

 

For the button you'd target this;

.sqs-async-form-content .form-wrapper input[type=submit] {

font-family: 'insert font family' !important;

font-size: 24px !important; //change font size//

font-weight: 500 ; //change bold size//

background-color: #5FB2F7 !important;
}

 

You can add a hyperlink to a checkbox, but it will navigate to a different page and you'd have to refill out the information in the form. I am not sure if this is possible but maybe @tuanphan @paul2009 or @Ziggycould answer this more thoroughly.

Link to comment
  • 5 months later...

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.