There are a few ways to publish Leadpages to your server. If you use WordPress, we recommend using our plugin to publish pages. You can learn more about it here: Installing the WordPress Plugin. Otherwise, you can upload your pages to your server manually.
- edit your Leadpage and update it without needing to republish
- collect analytics data (and view it in Leadpages)
- run split tests
If you need your page’s full source code, you can use the “Advanced HTML export option”, available to all plans except Standard Monthly.
To learn more about the Advanced HTML export option, check out: How Can I Change My Leadpages Template?
Follow these steps to get any page’s HTML code:
- Go to the Leadpages tab in your account dashboard.
- Click the Actions menu (⋯) for the page you’d like to publish, then select “Publish Options”.
- Choose “Other Publishing Options,” then click Download HTML (from the “Publish on another server” option).
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.
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 Leadpage’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 Leadpage to your site.
To do so, open the HTML file and copy the entire code.
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.
You’re welcome to use your code from Leadpages in this way, but please note we cannot help troubleshoot or resolve issues with your specific site.
Frequently asked questions
My page’s custom SEO/social share settings don’t seem to be working… what can I do?
When using the basic HTML publishing option, you’ll need to edit your code to include SEO or Open Graph (used for social sharing previews) tags. It’s best to add the tags just before the closing
</head> tag in your page’s HTML, as seen below.
For social sharing, please see our article here: How Can I Change the Preview of my Page on Social Networks? It contains all the most common social share tags, which you can add to your downloaded HTML before publishing it.
To set SEO properties, you can use the following code snippets:
<title>YOUR TITLE GOES HERE</title>
<meta name="keywords" content="keywords, go, here">
<meta name="description" content="Insert a description of your page here.">
Can I just point certain Leadpages 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 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 also offer custom subdomains, so you can host Leadpages on our servers, but make them accessible at your domain, e.g.
webinar.yoursite.com/register. Read our guide here for more information.
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).
(Updated April 05, 2017)
Please let us know if you have additional questions.
You can always file a support ticket if you have additional questions by clicking the Support button in your dashboard shown here or clicking here to file a support ticket.