Plugin / Pardot

Pardot

Frequently Asked Questions (FAQ)

Two simple shortcodes are available for use.
[pardot-form id=”{Form ID}” title=”{Form Name}” class=”” width=”100%” height=”500″ querystring=””] Use [pardot-form] with at least the id parameter. For instance, [pardot-form id="1" title="Title"] renders my Pardot form with an ID of 1. Optional parameters: The title parameter is included when using the toolbar button, but it’s not required for display. There is no default. The class parameter allows you to add additonal classes to the iframe element. There is no default, but the class pardotform is now automatically added, regardless of any additional classes. The width parameter will set the width of the iframe in pixels or percentage. For example, “500”, “500px”, and “80%” are all valid. The default is 100%. The height parameter will set the height of the iframe in pixels only. For example, “500” or “500px” are valid. The default is 500px. The querystring parameter appends an arbitrary string to the end of the form’s iframe source. This is helpful for passing data directly into the form. You can also do this with filters (see below).
[pardot-dynamic-content id=”{Dynamic Content ID}” default=”{Non-JavaScript Content}”] Use [pardot-dynamic-content] with at least the id parameter. The default parameter is used for accessibility. Whatever is placed here is wrapped in
Simply choose another campaign in Settings > Pardot Settings and click ‘Save Settings’.
Since every WordPress theme is different, embedded forms won’t always automatically fit. You’ll want to make a Pardot Layout Template specifically for your WordPress theme: Go to Forms in Pardot. Find and edit the form that needs updating. Click ahead to the ‘Look and Feel’ step of the wizard and select the ‘Styles’ tab. Set ‘Label Alignment’ to ‘Above’ and click ‘Confirm and Save.’. Click the link to the layout template being used by the form. Edit the layout template and add the following to the section of the template: A width of 150px is just a starting point. Adjust this value until it fits on your page and add additional styles as you see fit. For styling help, reference our Basic CSS for Forms page.
Go to Settings > Pardot Settings and click ‘Reset Cache’. This should reinitialize and update your Pardot content.
As of version 1.4, developers can now deal with various directory configurations that would previously cause the plugin to break. This is due to the plugin not being able to find wp-load.php. To fix it, add a new file called pardot-custom-wp-load.php to the plugins/pardot/includes directory (this will never be overridden by updates). In that file, define a constant that gives the absolute path to your wp-load.php file. For instance: define('PARDOT_WP_LOAD', '/path/to/wp-load.php');
pardot_form_embed_code_[Form ID] Filter the entire embed code for a given form. A common usage for this is conditionally appending a query string. So, for instance, the following will filter the embed code for form #545 and append an arbitrary parameter along with the post ID of the page being viewed: function pardot_custom_append_querystring($body_html) { return preg_replace( '/src="([^"]+)"/', 'src="$1?this=that&postID=' . get_the_ID() . '"', $body_html ); } add_filter( 'pardot_form_embed_code_54796', 'pardot_custom_append_querystring' ); You can apply any conditional logic you want. For instance, this will append the same information, but only if you’re on the “About” page: function pardot_custom_append_querystring($body_html) { if ( is_page('About') ) { $body_html = preg_replace( '/src="([^"]+)"/', 'src="$1?this=that&postID=' . get_the_ID() . '"', $body_html ); } return $body_html; } add_filter( 'pardot_form_embed_code_54796', 'pardot_custom_append_querystring' ); pardot_https_regex Filter the regular expression used to find URLs to be converted to https://go.pardot.com. This is only used when “Use HTTPS?” is checked in the settings. You may want to filter this regex if you find it’s not properly capturing and converting your URLs. function pardot_custom_filter_https_regex() { return "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,63}(\/\S*)?/"; } add_filter( 'pardot_https_regex', 'pardot_custom_filter_https_regex' );

Ratings

3.4
7 reviews

Rating breakdown

Details Information

Version

1.4.11

First Released

31 Aug, 2012

Total Downloads

86,766

Wordpress Version

5.1 or higher

Tested up to:

5.2.4

Require PHP Version:

-

Tags

Contributors

Languages

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.