# Hubspot form integration problem in Wordpress

**URL:** <https://community.hubspot.com/t/hubspot-form-integration-problem-in-wordpress/51078>\
**Category:** CMS Development\
**Tags:** forms\
**Created:** [February 8, 2022, 11:30am UTC](https://community.hubspot.com/t/hubspot-form-integration-problem-in-wordpress/51078 "2022-02-08T11:30:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ADuru](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@ADuru](https://community.hubspot.com/u/ADuru)\
**Post date:** [February 8, 2022, 11:30am UTC](https://community.hubspot.com/t/hubspot-form-integration-problem-in-wordpress/51078/1 "2022-02-08T11:30:51Z")

</div>

```auto
Hello everyone,

I'm writing to you here because I can't find a solution for integrating my hubspot form (created with the CRM) into my wordpress site (made without a template, fromscratch).

I added the script transmitted by hubspot in the HTML code of my site:

<!--[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({
region: "na1",
portalId: "example",
Form ID: "example"
});
</script>

The form is displayed correctly, no problem for the viewer.

The problem I encounter is that once the integration of this form is done, it adds a DOM element to the DOM of my web page and suddenly it blocks the scrolling and scrolling of the web page as soon as I interact with the form. Once outside the form area, no more problems (see video).

Would you have a solution? Have you encountered this problem before?

Thank you in advance for your answer,

All the best, 

```

---

<div class="post-metadata">

**Author:** ![stefen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stefen/32/29274_2.png) [@stefen](https://community.hubspot.com/u/stefen)\
**Post date:** [February 8, 2022, 12:49pm UTC](https://community.hubspot.com/t/hubspot-form-integration-problem-in-wordpress/51078/2 "2022-02-08T12:49:19Z")

</div>

@ADuru it sounds like you might have a smooth scrolling script on your page or something of the sort that is not accounting for the new page height once the form loads.

---

<div class="post-metadata">

**Author:** ![ADuru](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@ADuru](https://community.hubspot.com/u/ADuru)\
**Post date:** [February 8, 2022, 1:10pm UTC](https://community.hubspot.com/t/hubspot-form-integration-problem-in-wordpress/51078/3 "2022-02-08T13:10:25Z")

</div>

Ok @stefen , i just try it and it was the smooth scroll ! Thank you very much for your help !  
Have a good day ! 🙏
