Last active
May 19, 2023 16:52
-
-
Save JacobLett/45561dec14ee018f02b1c3144125a634 to your computer and use it in GitHub Desktop.
HubSpot form embed with div target ID - without this the form can sometimes appear out of alignment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="footerHSForm"></div> | |
<!--[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 type="text/javascript"> | |
hbspt.forms.create({ | |
css: '', | |
// Add portalId | |
portalId: '', | |
target: '#footerHSForm', | |
// add formId | |
formId: '' | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you