By default, yous tin build pages and create content within WordPress without always having to upload whatsoever custom HTML files. That's considering the WordPress core comes with built-in content types. In addition, the WordPress theme you use will probable have its ain set of pre-designed page templates that you lot tin can take reward of to create a unique website that meets your needs.

Beyond that, there are enough of WordPress landing page plugins y'all tin can apply to create customized page templates for site visitors to land from search results, email campaigns, and fifty-fifty social media.

So really, there is very little need to upload HTML files to WordPress because, usually, everything you lot need to format your website is already there. That said, there are some reasons why yous'd want to know how to upload an HTML file to WordPress, some of which become across uploading a template for design purposes.

That's why in this post, I'll show yous how to upload HTML files to WordPress. I'll likewise discuss in detail why yous'll want to have this skill, so no matter what, you're prepared.

What is an HTML File?

HTML stands for Hypertext Markup Linguistic communication and was outset adult by Tim Berners-Lee in 1990. In short, HTML is the code used to create electronic documents on the cyberspace, which are ameliorate known as webpages. In fact, every webpage y'all run into on the internet was written using HTML code.

The HTML code on your site's web pages are responsible for making sure your content'south text and images are formatted in the right way.

Without HTML, spider web browsers would non empathise the way to visually display the structure of your website for users. Even so, with the right HTML code creating the foundation for your webpages, and a little CSS code for adding in some design elements, your website appears perfectly for site visitors.

What is an HTML Template?

So, you know that HTML is the lawmaking responsible for creating the structure of single webpages on the net.

Just what is an HTML template?

An HTML template is a pre-designed set up of HTML files that include things like text, images, and back up files for font styles and Javascript. In other words, an HTML template is a pre-made package of HTML code that you lot can easily upload to your website and utilize.

When you use an HTML template on your WordPress website, yous upload the file and plug in the text and images you lot want the template to brandish on the front finish of your site.

It'southward important to remember that HTML templates are different than WordPress themes:

  • WordPress Themes: even though you plug in text and images into WordPress themes, they are responsible for the look and experience of your entire website. Many element changes within your site's theme are global, meaning they apply to your entire website.
  • HTML Templates: these are standalone zip files that you lot upload to your website individually. They only bear upon the look and feel of a unmarried webpage on your website. In other words, changes you make to i uploaded HTML template will simply impact that webpage.

Unfortunately, many people don't sympathise the differences between themes and HTML templates and use the terms 'theme' and 'template' interchangeably.

Why Yous Would Need to Upload an HTML File to WordPress

In that location are a few specific reasons why you might desire to upload an HTML file to WordPress:

    1. You Have Your Favorites: if y'all were using a great HTML template on an onetime website and wanted to use it on your new site, you might want to upload the template to your new site rather than re-do the unabridged thing. This will save you time and ensure it looks exactly the same.
    2. You Want a Custom Folio Layout: if your current WordPress theme doesn't back up a specific page layout, you can upload an HTML file with the blueprint you want and customize it as needed.

Lastly, you might need to verify your WordPress website with Google Search Console and want to use the recommended method of uploading a Google HTML verification file to practise so.

The mode your website appears in search engines, especially a big one like Google, plays a role in your success as a website owner.

That's why tools like Google Search Panel exist. With Google Search Console, you guarantee that Google volition alphabetize and rank your site in relevant search results, all in the hopes of making information technology to the first page.

Google Search Panel also provides you data about your current SERPs (search engine outcome pages), and so yous can improve your SEO efforts and earn more than clickthroughs to your site.

The affair is, to use Google Search Console, you demand to verify your WordPress website. And it merely and so happens that one of the best ways to do this is to upload a Google HTML verification file.

Now, allow's take a look at the unlike ways to upload an HTML file to WordPress.

one. Method: How to Upload HTML File to WordPress in the WordPress Dashboard

The first method for uploading an HTML file to WordPress we'll look at involves the WordPress dashboard.

You lot'll need nil more than than the backend of your website and an HTML template to complete this process since you'll be uploading the HTML file directly through a post, page, or the Media Library.

To upload an HTML file through a post or page, insert a 'File' cake in the Gutenberg Editor. And so, click Upload to upload the HTML file.

Upload HTML file in Gutenberg
Upload HTML file in Gutenberg

Hither'southward what information technology looks like if you've disabled Gutenberg and are using the Archetype Editor. Just click Add Media and then Upload to upload your HTML file.

Cull the HTML file yous want to upload then click Insert into post. Doing this inserts the link of the file into the post or page and automatically saves it to your Media Library.

Upload HTML file in Classic Editor
Upload HTML file in Classic Editor

You tin can skip uploading the HTML file to a mail service or folio in WordPress and upload information technology straight to your Media Library. Click Media Library in the WordPress dashboard, then Add New, and cull the HTML file from the place you have information technology saved (e.yard., your computer, hard drive, or external storage).

Keep in heed, y'all might encounter an fault when yous upload your HTML file while using Gutenberg. This is what information technology will wait like:

File type not permitted
File type not permitted

Check hither for detailed instructions on how to ready the "Sorry, This File Type Is Non Permitted for Security Reasons" Fault in WordPress.

two. Method: How to Upload HTML File to WordPress Using an FTP Client

Uploading HTML files through the WordPress dashboard is the most straightforward method. However, for large templates made up of multiple files, it's all-time to apply an FTP customer such every bit FileZilla.

Using an FTP client is besides helpful for times you lot desire to piece of work locally on a test site before pushing whatever changes y'all make to your alive site. This will prevent whatsoever unnecessary downtime if something goes wrong.

To start, always create a backup of your website beginning because you never know what the HTML file might do when you upload it to your site.

Next, open up your FTP client.

Now you'll demand to connect to your spider web host account past inbound your FTP credentials. This information is usually constitute in your web hosting account. If you lot accept trouble finding it, reach out to your host and have them assist you.

Subscribe Now

If you employ Kinsta hosting, starting time log into your MyKinsta business relationship and click on Sites in the dashboard and and then on Info to get the credentials needed.

sftp details
Get your SFPT details in MYKinsta

When you lot do this, you should run across your credentials under SFTP/SSH. You'll demand your username, countersign, and port.

sftp details username password port
SFTP details

Hither'southward the information y'all're going to need to enter into FileZilla:

  • Host: your site's domain proper name preceded past "sftp://". For example, you'll demand to enter sftp://www.mysite.com.
  • Username: from your MyKinsta dashboard
  • Password: from your MyKinsta dashboard
  • Port: from your MyKinsta dashboard

This is what it volition await like at the pinnacle of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

After you lot've entered your credentials, click Quickconnect.

Now information technology's time to upload the HTML file from your computer to WordPress. Start by navigating to your website'south root folder (which contains the wp-content folder, the wp-config.php file,etc.) on the right side.

Then, go to the left side and find the HTML file yous take saved. When you find it, correct-click it and select Upload to add it to your website. To see all hidden files in Filezilla follow this short tutorial.

HTML file uploaded
HTML file uploaded

You'll see the file has successfully been uploaded to WordPress. To cheque to brand sure information technology is visible on your website, type your website's URL into your browser and add the proper name of the HTML file to the end. For instance, it might wait similar www.mywebsite.com/html-file.

When you do this, you'll be redirected to the new webpage you've created with the HTML file.

three. Method: How to Upload HTML File to WordPress Using cPanel

The last method we're going to share with you involves using cPanel and the File Director to upload an HTML file to WordPress.

First by logging into your hosting business relationship'due south cPanel and accessing the File Manager.

FileManager in cPanel
FileManager in cPanel

Once you lot're in the File Managing director, you take two options:

    1. Create a New Binder: create a new folder in your site'due south root folder to upload your HTML file to.
    2. Upload to Root Folder Straight: rather than create a new folder, upload the HTML directly to WordPress. If this is how you want to do it, unzip the HTML file where you take it saved, change the index.html binder to something new, and then rezip the file to continue uploading to WordPress. If you don't, the HTML template will override your site'south homepage.

For this example, nosotros'll create a new folder since there are a few added steps when you practice this.

Create a New Binder and Upload an HTML File to WordPress

Commencement, navigate to the root folder of your website (which contains the wp-content binder, the wp-config.php file,etc.). Then click New Folder.

Selecting New Folder from File Manager settings

Name your new folder and click Create New Binder.

Creating a new folder in cPanel
Creating a new binder in cPanel

Double click on the binder you lot merely created then click Upload to select your HTML file.

Upload button
Upload button

In one case this is done, yous'll come across your zipped HTML file in the folder.

Zipped HTML file
Zipped HTML file

Now you need to unzip the HTML file past right-clicking and selecting Extract.

Extract HTML file
Extract HTML file

When the modal window pops upwards, click Excerpt Files to finish the unzipping process. When the HTML file has been unzipped, you'll see all the different files included in the template. Remember this means y'all'll see things similar CSS, font style files, images, and JavaScript.

Extracted HTML files
Extracted HTML files

Now all yous have to do to make certain the HTML template and files were uploaded is blazon your site'due south URL into the browser and add together the new binder'southward proper name to the end.

If you run into a 404 fault, don't worry. This is a mutual WordPress mistake and can be resolved easily.

If your server doesn't back up redirection, and the index.php file is non redirected on loading the URL in your browser, you lot'll run into a 404 mistake after uploading your HTML files.

To set up this, stay within the File Director and access your .htaccess file by double-clicking information technology. And then, add the post-obit code and save your changes:

          RewriteRule ^(.*)index\.(php|html?)$ /$ane [R=301,NC,L]        

This code will redirect your index.php file and load it in the browser.

Need to upload any HTML file to your WordPress site? This in-depth guide shows you lot how to exercise it hands. ⬆📂 Click to Tweet

Summary

WordPress is the most used Content Direction system around considering it gives website owners the flexibility needed to create unique websites that stand out from the competition. Being able to upload an HTML file to WordPress using any of the in a higher place-mentioned methods is just another case of how WordPress caters to the needs of site owners and gives them the liberty to customize their sites as needed.

Plus, knowing how to upload an HTML file to WordPress is just a practiced skill to have in case the demand arises. After all, you never know when you might come across an HTML template you love or need a certain blazon of page layout that your theme doesn't support.


Save fourth dimension, costs and maximize site performance with:

  • Instant help from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience reach with 29 data centers worldwide.
  • Optimization with our built-in Application Performance Monitoring.

All of that and much more, in one plan with no long-term contracts, assisted migrations, and a 30-day-money-dorsum-guarantee. Check out our plans or talk to sales to find the program that'due south correct for you.