Past default, you can build pages and create content inside WordPress without ever having to upload any custom HTML files. That's because the WordPress core comes with built-in content types. In addition, the WordPress theme you employ will likely take its ain set of pre-designed page templates that you can take advantage of to create a unique website that meets your needs.

Beyond that, there are plenty of WordPress landing page plugins you tin use to create customized page templates for site visitors to land from search results, email campaigns, and even social media.

So really, at that place is very fiddling need to upload HTML files to WordPress considering, usually, everything you need to format your website is already in that location. That said, there are some reasons why you'd desire to know how to upload an HTML file to WordPress, some of which go beyond uploading a template for design purposes.

That'due south why in this post, I'll bear witness you how to upload HTML files to WordPress. I'll also discuss in detail why you lot'll want to have this skill, so no affair what, you're prepared.

What is an HTML File?

HTML stands for Hypertext Markup Language and was first developed by Tim Berners-Lee in 1990. In curt, HTML is the lawmaking used to create electronic documents on the internet, which are meliorate known as webpages. In fact, every webpage you lot see on the cyberspace was written using HTML code.

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

Without HTML, web browsers would non empathise the style to visually display the construction of your website for users. However, 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, y'all know that HTML is the code responsible for creating the structure of single webpages on the internet.

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 support files for font styles and Javascript. In other words, an HTML template is a pre-made package of HTML lawmaking that you can easily upload to your website and use.

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

It's important to remember that HTML templates are dissimilar 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 unabridged website. Many chemical element changes inside your site'due south 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 on the await and experience of a unmarried webpage on your website. In other words, changes you make to one uploaded HTML template will only bear upon that webpage.

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

Why You Would Need to Upload an HTML File to WordPress

There are a few specific reasons why y'all might want to upload an HTML file to WordPress:

    1. You Have Your Favorites: if you were using a nifty HTML template on an old website and wanted to use it on your new site, you might want to upload the template to your new site rather than re-practice the entire thing. This volition salve you lot time and ensure it looks exactly the same.
    2. You Want a Custom Page Layout: if your current WordPress theme doesn't support a specific folio layout, you can upload an HTML file with the pattern you lot want and customize information technology as needed.

Lastly, yous 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 do so.

The way your website appears in search engines, peculiarly a large i like Google, plays a function in your success as a website possessor.

That's why tools like Google Search Console be. With Google Search Console, you guarantee that Google will index and rank your site in relevant search results, all in the hopes of making it to the first page.

Google Search Console also provides you lot information almost your current SERPs (search engine result pages), and then you can amend your SEO efforts and earn more clickthroughs to your site.

The thing is, to use Google Search Panel, yous need to verify your WordPress website. And it merely and then happens that one of the best ways to do this is to upload a Google HTML verification file.

At present, let'southward have a await at the dissimilar means to upload an HTML file to WordPress.

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

The get-go method for uploading an HTML file to WordPress we'll wait at involves the WordPress dashboard.

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

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

Upload HTML file in Gutenberg
Upload HTML file in Gutenberg

Here's what it looks like if you've disabled Gutenberg and are using the Archetype Editor. Only click Add Media and then Upload to upload your HTML file.

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

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

You can skip uploading the HTML file to a post or page in WordPress and upload it directly to your Media Library. Click Media Library in the WordPress dashboard, then Add New, and choose the HTML file from the place you have it saved (east.m., your computer, hard drive, or external storage).

Go on in mind, you might see an error when you lot upload your HTML file while using Gutenberg. This is what it will look like:

File type not permitted
File type not permitted

Check here for detailed instructions on how to fix the "Pitiful, This File Type Is Non Permitted for Security Reasons" Fault in WordPress.

2. Method: How to Upload HTML File to WordPress Using an FTP Customer

Uploading HTML files through the WordPress dashboard is the almost straightforward method. However, for big templates made up of multiple files, it's best to employ an FTP customer such as FileZilla.

Using an FTP customer is also helpful for times you lot want to work locally on a test site before pushing whatsoever changes you lot make to your live site. This will forbid any unnecessary downtime if something goes incorrect.

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

Side by side, open your FTP client.

At present you'll need to connect to your web host account by entering your FTP credentials. This data is usually constitute in your spider web hosting account. If yous accept trouble finding it, reach out to your host and have them help you.

Subscribe At present

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

sftp details
Get your SFPT details in MYKinsta

When you practice this, you should see your credentials under SFTP/SSH. You lot'll demand your username, password, and port.

sftp details username password port
SFTP details

Here's the information you're going to demand to enter into FileZilla:

  • Host: your site'south domain name preceded past "sftp://". For instance, you'll need 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 will look like at the height of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

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

Now it's time to upload the HTML file from your computer to WordPress. Kickoff past navigating to your website's 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 discover the HTML file you have saved. When you find information technology, right-click it and select Upload to add together it to your website. To come across all hidden files in Filezilla follow this curt tutorial.

HTML file uploaded
HTML file uploaded

Y'all'll meet the file has successfully been uploaded to WordPress. To check to make sure it is visible on your website, type your website'due south URL into your browser and add the name of the HTML file to the end. For instance, it might look like www.mywebsite.com/html-file.

When yous exercise this, yous'll be redirected to the new webpage y'all've created with the HTML file.

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

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

Get-go by logging into your hosting account's cPanel and accessing the File Director.

FileManager in cPanel
FileManager in cPanel

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

    1. Create a New Folder: create a new folder in your site'south root folder to upload your HTML file to.
    2. Upload to Root Folder Directly: rather than create a new folder, upload the HTML directly to WordPress. If this is how you want to practice it, unzip the HTML file where you lot take it saved, alter the alphabetize.html binder to something new, and then rezip the file to go on uploading to WordPress. If you don't, the HTML template volition override your site'southward homepage.

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

Create a New Folder and Upload an HTML File to WordPress

First, 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 binder and click Create New Folder.

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

Double click on the folder you lot but created then click Upload to select your HTML file.

Upload button
Upload push button

Once this is done, y'all'll come across your zipped HTML file in the folder.

Zipped HTML file
Zipped HTML file

At present you demand to unzip the HTML file past correct-clicking and selecting Extract.

Extract HTML file
Extract HTML file

When the modal window pops up, click Extract 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 ways you lot'll see things like CSS, font style files, images, and JavaScript.

Extracted HTML files
Extracted HTML files

Now all you have to exercise to make certain the HTML template and files were uploaded is blazon your site's URL into the browser and add the new binder's name to the cease.

If you encounter a 404 error, don't worry. This is a common WordPress mistake and tin can be resolved easily.

If your server doesn't support redirection, and the index.php file is not redirected on loading the URL in your browser, you'll encounter a 404 error afterward uploading your HTML files.

To ready this, stay within the File Manager and access your .htaccess file by double-clicking information technology. And so, add the following lawmaking and relieve your changes:

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

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

Demand to upload any HTML file to your WordPress site? This in-depth guide shows you lot how to exercise it easily. ⬆đź“‚ Click to Tweet

Summary

WordPress is the almost used Content Direction system around because 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 merely another instance of how WordPress caters to the needs of site owners and gives them the liberty to customize their sites every bit needed.

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


Save fourth dimension, costs and maximize site functioning with:

  • Instant help from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience reach with 29 data centers worldwide.
  • Optimization with our congenital-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-back-guarantee. Check out our plans or talk to sales to find the plan that's right for yous.