In May 2015 Marketo released fully responsive landing pages, also called guided landing pages. Unlike the free-form (drag & drop) landing page editor the new guided landing page editor provides structured editing for fully responsive landing pages. Marketo offers some guided landing pages that you can download, but this tutorial will show you how to code a brand new template and how to convert existing landing pages.
What’s new?
- A new option has been added to the popup window when creating a landing page.
- The type of editable content (ex. images or forms) will need to be defined in the landing page template code.
- Variables can be added to the landing page template to add different customization options within the landing page editor.
Creating a Landing Page
A new option has been added to the popup window when a new landing page template is created. You can now choose the editing mode. To utilize the new fully responsive landing page templates, select guided from the menu.
Like the free-free form template editor, the guided template editor provides you with some sample code. Go ahead and replace that code with your landing page code.
Define Editable Regions
Once you have your landing page template code in the Marketo editor, you can start to add some HTML to define which content sections should be editable. To do this, a DIV will need to be added in each of the sections. Each DIV will have to have the following properties:
- Class: This will specify the content type (ex. rich text, image, form).
- ID: A unique ID for the DIV (ex. left-column-text)
- mktoName: This will be the display name for the editable region within Marketo’s landing page editor.
Rich Text Area
To create an editable rich text section the DIV needs to have a class of “mktoText”
1 2 3 |
<div class="mktoText" id="exampleText" mktoName="Example Text Area"> This is an example editable text area. </div> |
Form
To create an editable form section the DIV needs to have a class of “mktoForm”
1 2 |
<div class="mktoForm" id="myMarketoForm" mktoName="Form"> </div> |
Image
To create an editable form section the DIV needs to have a class of “mktoImg”
1 2 |
<div class="mktoImg" id="exampleText" mktoName="Example Text Area"> </div> |
If you setup the editable regions correctly, it should have sections that look similar to this in the landing page editor.
Variables
Another great feature of guided landing page templates is the ability to define variables within the template. There are many possible ways to use variables within templates. Here is a few examples:
- Background colours
- Font colours
- Fonts
- Plain text (button text, titles, etc)
- Links for buttons
- Toggle show/hide content
Marketo allows 3 different variable types:
- mktoString: A mix of letters and/or numbers
- mktoColor: A hex colour
- mktoBoolean: A toggle show/hide on an element
Each one of these types will need to be added as a class to define the variable.
1. mtkoString example code
In the HEAD section of your landing page template include the following code:
1 |
<meta class="mktoString" id="buttonLabel" mktoName="Primary Button Label" default="Click Me"> |
In this example
- Class = the type of template variable, in this case, mktoString
- ID = An unqique ID for this element. This will be used as the varaible name within your HTML.
- mtkoName = The user-friendly name that will appear under “Variables” in the landing page editor
- default = The defualt value for the variable.
Now that variable is added in the HEAD section of the landing page template, you will also need to modify the HTML of the button in the template.
1 |
<a href="https://www.jennamolby.com"><button class="btn">${buttonLabel}</button></a> |
In the landing page editor you should now see the variable on the left-hand side.
2. mtkoColor example code
In the HEAD section of your landing page include the following code:
1 |
<meta class="mktoColor" id="section1BgColor" mktoName="Sec. 1 Background" default="#ffffff"> |
In this example
- Class = the type of template variable, in this case, mktoColor
- ID = An unqique ID for this element. This will be used as the varaible name within your HTML.
- mtkoName = The user-friendly name that will appear under “Variables” in the landing page editor
- default = The defualt value for the variable.
Now the variable can used throughout the template like this:
1 2 |
<div id="section1" style="background-color:${section1BgColor}"> </div> |
Or like this in CSS
1 2 3 |
#section1 { background-color: ${section1BgColor}; } |
In the landing page editor you should now see the variable on the left-hand side.

3. mktoBoolean example code
In the HEAD section of your landing page include the following code:
1 |
<meta class="mktoBoolean" id="showSocialButtons" mktoName="Show Social Buttons?" default="true" false_value="none" true_value="block" false_value_name="Hide" true_value_name="Show"> |
In this example
- Class = the type of template variable, in this case, mktoBoolean
- ID = An unqique ID for this element. This will be used as the varaible name within your HTML.
- mtkoName = The user-friendly name that will appear under “Variables” in the landing page editor
- default = The default value for the variable (TRUE or FALSE).
- false_value = The value when the toggle is OFF. This value should always be NONE if the toggle is for showing/hiding content.
- true_value = The value when the toggle is ON. This value should always be BLOCK or INLINE-BLOCK if the toggle is for showing/hiding content.
- false_value_name = The user-friendly value to display in the landing page editor when the toggle is OFF.
- true_value_name = The user-friendly value to display in the landing page editor when the toggle is ON.
Now the variable can used throughout the template like this:
1 2 |
<div id="section1" style="display:${showSocialButtons}"> </div> |
In the landing page editor you should now see the variable on the left-hand side.

Questions?
Email me, or send me a tweet @jennamolby.
Hi Jenna! I have been searching for help regarding this for some time now but am still having issues. When I add editable regions and then go into the editor as soon as I hit save all my css styling for the text is gone. Do you have any idea why that would happen? My css is inline and the email is built in tables.
Thanks! Great article.
Hi Wes, Are you using a 1.0 template are a 2.0 template? Feel free to email your template code to [email protected] and I can take a look to see if there’s anything you can do to prevent this from happening.