Jump to content

Custom CSS Hubspot Forms

Recommended Posts

Site URL: https://www.midwayconcrete.com.au/

Just wondering if someone can help me add custom css to my Hubspot forms (request a quote and contact us).

You can style the forms through Hubspt before embedding them but it is very limited and you aren't able to add custom css unless you embed as raw HTML. This is the embedding code for one of the forms:

<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
  hbspt.forms.create({
    portalId: "7206502",
    formId: "7e8c83b8-c711-4df1-b269-e64fb23ac317"
});
</script>

I have tried to add custom css in squarespace, however, nothing changes so I'm not sure what I should be targeting to override something in the code or if there is another trick?

Any help would be great!! Thank you :) 

Link to comment
  • Replies 3
  • Views 2.5k
  • Created
  • Last Reply

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.