www.getdrip.com/user/edit and copy API token.');?>

https://www.getdrip.com and login. Goto Settings > Site Setup and copy Account ID under third party integrations');?>

Placing a shortcode

On the page you require a Drip signup form, simply place the following shortcode:

[drip-signup campaign_id="12345678"]

The shortcode supports the following attributes:

  • campaign_id - mandatory. This is the Drip Campaign that the visitor should be subscribed to. Read the FAQ section to get more information on getting a campaign ID.
  • form_class - optional. The CSS class that should be applied to the form; this allows you to style the form as you wish via style sheets. Default: ''.
  • placeholder_text - optional. The default placeholder text that appears in the email address text box. Default: 'Enter your email address'
  • button_text - optional. Specifies the text on the submit button. Default: 'Submit'.
  • already_submitted_class - optional. Specifies the class that should be applied to the form if the user has already subscribed. Default 'yk-ds-hide-form'.
  • loader_colour - optional. Specifies the colour of the animated "loading" graphic. This allows you to contrast it against backgrounds. Default: '#000000'
  • hide_another_element_on_page This attribute allows you to specify the ID of another HTML element on the page. When a form is submitted or a cookie has been detected, the css class specified by argument "already_submitted_class" will also be applied to given HTML element. For example this allows you to hide a div containging the form and other text. Default: none.

Here is a full example:

[drip-signup campaign_id="12345678" form_class="my-css-form-class" placeholder_text="Enter your email address" button_text="Subscribe" already_submitted_class="my-css-form-submitted" hide_another_element_on_page="id-of-another-html-element" loader_colour="#FFFFFF"]

Placing via PHP / Templates

If you wish to render a form via PHP, use the following sytnax:

if (function_exists('yk_ds_shortcode'))
{
$shortcode_args = array( 'campaign_id' => 12345678,
'form_class' => 'my-css-form-class',
'placeholder_text' => 'Enter your email address',
'button_text' => 'Subscribe',
'already_submitted_class' => 'my-css-form-submitted',
loader_colour => '#FFFFFF',
'hide_another_element_on_page' => 'id-of-another-html-element'
);

echo yk_ds_shortcode($shortcode_args);
}