Need help? You’ve come to the right place

What’s New Getting Started Building Integrating Publishing

Publish landing pages as HTML

Last Updated

There are a few ways you can publish landing pages to your server. If you use WordPress, we recommend using our plugin. You can learn more about it here: Installing the WordPress Plugin. Otherwise, you can upload pages to your server manually.

NOTE: To use our HTML publishing option, you must have a web host in addition to a domain. Learn more. ↘

Every landing page can be published as HTML. The code contains a JavaScript snippet that essentially imports your page to your site’s server. Because the code is set up this way, you can…

  • edit your landing page and update it without needing to republish
  • collect analytics data (and view it in Leadpages)
  • run split tests

Read on to learn more about publishing your landing pages as HTML.

 

Step-by-step instructions

Follow these steps to get any page’s HTML code:

  1. Go to the Landing Pages tab in your account dashboard.
  2. Click the Actions more menu for the page you’d like to publish, then select “Publishing Options”.
  3. Choose “HTML,” then click Download Dynamic HTML.
NOTE: There is also a static HTML download available below the download button. Using the static HTML download will prevent analytics, split testing & the page builder from functioning normally. We cannot offer support for this.

If you’re in the builder, click Publish or the Update down_angle menu then click “Publish Options”. From there, select “Other Publishing Options” and click Download HTML.

Once you have your page’s HTML, you’ll need to get it on your site. How you do so depends on your site’s specific setup, but you can learn about the most common options below.

NOTE: Any meta data/tags you've added to your page will need to be added where you are publishing your page, as this information is not included in the HTML download of a landing page.

Option 1: Upload the file to your server

The most common way to publish a page as HTML is to upload it to your server using an FTP client (such as FileZilla, Cyberduck, or Transmit).

You’ll need an FTP username and password, which you can typically find in your cPanel dashboard. Otherwise, you may need to reach out to your web host’s support team to get your FTP credentials.

Once you upload your landing page's HTML file to your server, you can start directing visitors to its URL.

Option 2: Paste HTML to your site

If you use a website builder (and don’t have direct access to your server), your best option may be to paste the HTML from your landing page to your site.

To do so, open the HTML file and copy the entire code.

TIP: Most systems open HTML files in your default web browser. We recommend opening your file in a text editor such as Notepad++ or Atom.

Then, check with your site builder’s documentation or support team to determine the best place to paste your code. Most will provide a “custom HTML” or “code injection” field.

Keep in mind however, some website platforms don’t have an option to paste or upload custom HTML. Or if they do, your pages may be contained within your site’s overall theme.

You’re welcome to use your code from Leadpages in this way, but please understand that we cannot help troubleshoot or resolve issues with your specific site.

Frequently asked questions

Can I just point certain landing pages to my domain?

All webpages must be hosted on a server—a domain (and more specifically, a URL) simply acts as the location of a page. To use our HTML publishing option, you must have a web host in addition to a domain. Keep in mind, many domain name registrars also offer hosting services, so you can always check with your service for potential solutions.

We do offer the ability to connect your domain to Leadpages with no hosting needed. With this method, you can host landing pages on our servers, but make them accessible at your domain, e.g. www.yoursite.com/register. Read our guide here for more information.

WARNING: Do not use domain masking. Doing so can cause major issues with landing pages, including the loss of opt-in data. Learn more…

Can I use a 404 template on my own server?

You should be able to as long as your web host offers the option to customize a 404 page for your site. You’ll need to check with your web host for any requirements (such as what to name the HTML file).


Need more help?

You can always get in touch with our support team—just click help_circle in the top-right corner of your Leadpages dashboard, or submit a ticket ↗

Was this article helpful?
Powered by Zendesk