Forked from JacobLett/gist:45561dec14ee018f02b1c3144125a634
Created
May 19, 2023 16:52
-
-
Save timwco/57a3dba5a9e18c2b50fe596b22bf6ab4 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 hidden or 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