How Do I Add a HubSpot Pop Up Form to WordPress?

Adding a HubSpot pop up form to WordPress is easy. First, you’ll need to create a new file called “popUPS.

php” in your WordPress folder. This file will contain your HubSpot pop up form code.

Next, you’ll need to add the following lines of code to your popUPS.php file:

setConfig(‘popUPS.url’,’hubspot.com’);

$hubspot->setConfig(‘popUPS.title’,’My Pop Up Form’);

$hubspot->setConfig(‘popUPS.message’,’Please enter your contact information’);

$hubspot->addForm(‘contact_form’);

$hubspot->addForm(‘lead_form’);

$hubspot->addForm(‘optin_form’);

$hubspot->addForm(‘subscription_form’);

$hubspot->addForm(‘thank_you_form’);

?>

Now, you’ll need to add the pop up forms to your website. To do this, you’ll need to add the following lines of code to your WordPress template files:

{% load popUPS %}

{% include ‘popUPS.php’ %}

{% if contact_form %}

{% endif %}

{% if lead_form %}

{% if optin_form %}

{% if subscription_form %}