Pardot Knowledge Base

Creating Layout Templates

Last Updated: Apr 26, 2016 | Print this Article
A layout template controls how elements managed by Pardot are displayed on web pages. Layout Templates are used for landing pages, forms, and site search results. Please note that layout templates do not support server-side scripting languages.  
If you plan on using layout templates with forms, please note that styling is controlled by the outermost containing element, so:
  • If you have a form by itself, the layout template for that form will be displayed.
  • If you have a form on a landing page, the landing page layout template will be displayed.
  • If you have a form on a landing page built using the landing page builder, it will use no layout template at all.
To create a layout template:
  1. Navigate to Marketing > Landing Pages > Layout Templates.
  2. Click + Add Layout Template.
  3. Enter a Name. This is internal-only. Use something descriptive like "Site Search Results Layout" if you plan to use multiple layout templates.
  4. The Layout tab controls the look and feel of your marketing elements using HTML and CSS. Enter a variable tags to pull information into your template. See Variable Tags below for more details. You can also add content regions here.
  5. You can also import your styling by clicking Import layout from URL. Simply enter the URL and click Import now. You will need to edit the output by qualifying any URLs as they will all need to be absolute instead of relative (e.g., change "/images/image.gif" to something like "").
  6. The Form and Site Search tabs consist of Pardot substitution logic statements, illustrating how the various form fields, content, and other elements will be displayed. Advanced users can customize this logic based on their business needs.

Variable Tags

There are three Pardot variable tags you may add to your layout template:
  • %%title%% -- The %%title%% variable tag will pull in the title for the page. For landing pages, the title entered in step 1 when creating a landing page will replace the %%title%%. Pardot will fill in the title for your unsubscribe and email preference center pages.
  • %%content%% -- Enter the %%content%% variable tag where you would like the form, site search results, or landing page opening general content to appear within your design. Please do not place the %%content%% tag inside of a <p></p> tag -- doing so affects the styling of the form in different Internet browsers.
  • %%description%% -- The %%description%% variable tag can be added to the head section of your layout template. This will pull in the description that is added in step 1 of the creating a landing page. See the Increasing Your SEO through Tags article for more details.
Note: Layout templates do not support server-side scripting languages.

Need more? Start a conversation with other Pardot users in our Success Community