Need help? You’ve come to the right place

What’s New Getting Started Building Integrating Publishing

The HTML widget

Last Updated

The HTML widget allows you to add items and functionality that may not already be built into the Drag & Drop Builder.


Using the HTML widget

Adding your HTML code

To add your code, click the HTML widget on the page to select it, then click HTML to open the editor fly-out. Once selected, you will be able to paste in your code, as seen below.

Click the blue Save button within the HTML widget after adding or changing your code to ensure that it’s retained when you publish or update your page.

Surveys, maps, Facebook comments and more 

The HTML widget can be used to add functionality that may not already be built into the Drag & Drop Builder. Below are a few examples of common use cases. Keep in mind that we do not provide the code for these elements—services will often provide code you can use on webpages. Look for an “embed” or “iframe” option in the service you use to see if they provide HTML code.

Google Maps

Steps to copy Google Map embed code

    1. Enter the location you'd like to embed into Google Maps then click Share.
    2. Select the "Embed a map" tab.
    3. Click Copy HTML and paste it in a note somewhere you can reference it in a moment.

Steps to embed the map in Leadpages:

  1. Add an HTML widget where you'd like the map to appear on your page.
  2. Paste the code below into the HTML widget and replace only the iframe part of the code with the iframe embed code you copied from Google Maps.
  3. Click Save and update your page at the top-right corner.
.google-maps {
position: relative;
padding-bottom: 75%;
height: 0;
overflow: hidden;
.google-maps iframe {
position: absolute;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
<div class="google-maps">
<iframe src="!1m14!1m12!1m3!1d7098.94326104394!2d78.0430654485247!3d27.172909818538997!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2s!4v1385710909804" width="600" height="450" frameborder="0" style="border:0"></iframe>

Facebook Comments

Click here for more info on embedding features Facebook has to offer.


Google Calendar

Image Gallery

Customization and Styling Details​

      • All code added to an HTML widget is taken as is, and is not validated by our builder.
      • Customizing and styling content added to an HTML widget must be done within the HTML itself.  

Tips and Frequently Asked Questions

Where can the HTML widget be used?

The HTML widget can be placed alongside any widgets on your page. When placed next to another widget, the width of HTML modal can be adjusted. Keep in mind that unlike other widgets, sizing and alignment are determined mostly by your code.

Why isn't my HTML widget working in the builder?

The HTML you use will not be rendered live in the builder, but will be able to see it in the preview mode or live version of your page.

What happens if I change something and it stops working?

We recommend using caution when editing your HTML code. Please note we cannot provide support for third-party code or help troubleshoot issues you may have with it. If you need assistance with your code, please consult your code provider’s documentation or support options.

Need more help?

You can always get in touch with our support team—just click Support in your Leadpages navigation menu, or submit a ticket ↗

Was this article helpful?
Powered by Zendesk