By default, you can build pages and create content within WordPress without ever having to upload any custom HTML files. That'southward considering the WordPress cadre comes with built-in content types. In add-on, the WordPress theme you use volition likely have its own set of pre-designed page templates that yous tin can accept reward of to create a unique website that meets your needs.

Beyond that, in that location are plenty of WordPress landing page plugins you 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 y'all need to format your website is already there. That said, there are some reasons why you'd want to know how to upload an HTML file to WordPress, some of which become beyond uploading a template for design purposes.

That's why in this mail, I'll show you how to upload HTML files to WordPress. I'll as well discuss in detail why you'll want to accept this skill, and then no affair what, you're prepared.

What is an HTML File?

HTML stands for Hypertext Markup Linguistic communication and was first developed by Tim Berners-Lee in 1990. In short, HTML is the lawmaking used to create electronic documents on the internet, which are better known as webpages. In fact, every webpage you encounter on the net was written using HTML code.

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

Without HTML, spider web browsers would not understand the way to visually display the structure of your website for users. However, with the right HTML lawmaking 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, yous know that HTML is the code responsible for creating the structure of single webpages on the cyberspace.

But what is an HTML template?

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

When you utilize an HTML template on your WordPress website, y'all upload the file and plug in the text and images y'all want the template to brandish on the forepart finish of your site.

Information technology's 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'south theme are global, meaning they utilise to your entire website.
  • HTML Templates: these are standalone zip files that you lot upload to your website individually. They only touch the await and feel of a single webpage on your website. In other words, changes you brand to one uploaded HTML template will only affect that webpage.

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

Why You Would Demand 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 great HTML template on an former website and wanted to use information technology on your new site, you might want to upload the template to your new site rather than re-do the entire matter. This volition relieve you time and ensure it looks exactly the same.
    2. You Desire a Custom Page Layout: if your current WordPress theme doesn't support a specific folio layout, you can upload an HTML file with the design yous want and customize it every bit needed.

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

The way your website appears in search engines, especially a big one like Google, plays a role in your success every bit a website owner.

That'due south 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 data well-nigh your current SERPs (search engine issue pages), and then yous can amend your SEO efforts and earn more than clickthroughs to your site.

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

At present, let's take a look at the different ways to upload an HTML file to WordPress.

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

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

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

To upload an HTML file through a mail service 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'southward what information technology looks similar if you've disabled Gutenberg and are using the Archetype Editor. Just click Add Media and then Upload to upload your HTML file.

Choose the HTML file you want to upload and so 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 Archetype Editor

You can skip uploading the HTML file to a post or folio in WordPress and upload it directly to your Media Library. Click Media Library in the WordPress dashboard, so Add New, and choose the HTML file from the place you lot have it saved (e.one thousand., your computer, hard drive, or external storage).

Keep in heed, you might encounter an mistake when you upload your HTML file while using Gutenberg. This is what it will look similar:

File type not permitted
File type not permitted

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

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

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

Using an FTP client is also helpful for times you lot want to work locally on a examination site before pushing any changes you make to your alive site. This will prevent any unnecessary downtime if something goes incorrect.

To outset, always create a backup of your website first considering you never know what the HTML file might practise when you upload it to your site.

Side by side, open your FTP client.

Now you'll need to connect to your web host account past entering your FTP credentials. This information is unremarkably found in your web hosting account. If yous have trouble finding it, achieve out to your host and accept them help y'all.

Subscribe At present

If you utilize Kinsta hosting, showtime log into your MyKinsta account and click on Sites in the dashboard and so on Info to go the credentials needed.

sftp details
Become your SFPT details in MYKinsta

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

sftp details username password port
SFTP details

Here'southward the information you're going to need to enter into FileZilla:

  • Host: your site'southward domain name preceded by "sftp://". For instance, yous'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 volition expect similar at the top of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

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

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

Then, become to the left side and find the HTML file y'all have saved. When you discover it, right-click it and select Upload to add it to your website. To meet all hidden files in Filezilla follow this brusk tutorial.

HTML file uploaded
HTML file uploaded

You lot'll meet the file has successfully been uploaded to WordPress. To check to make sure it is visible on your website, type your website's URL into your browser and add together the name of the HTML file to the cease. For instance, it might wait like www.mywebsite.com/html-file.

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

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

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

Starting time by logging into your hosting business relationship's cPanel and accessing the File Manager.

FileManager in cPanel
FileManager in cPanel

One time y'all're in the File Manager, you have two options:

    1. Create a New Folder: create a new binder in your site'southward root folder to upload your HTML file to.
    2. Upload to Root Folder Directly: rather than create a new binder, upload the HTML directly to WordPress. If this is how yous want to do it, unzip the HTML file where you have it saved, change the alphabetize.html folder to something new, and so rezip the file to proceed uploading to WordPress. If you don't, the HTML template will override your site's homepage.

For this case, we'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

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

Selecting New Folder from File Manager settings

Proper name your new folder and click Create New Binder.

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

Double click on the binder y'all just created then click Upload to select your HTML file.

Upload button
Upload button

In one case this is done, y'all'll encounter your zipped HTML file in the folder.

Zipped HTML file
Zipped HTML file

At present you need to unzip the HTML file by right-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 unlike files included in the template. Retrieve this means you'll see things like CSS, font style files, images, and JavaScript.

Extracted HTML files
Extracted HTML files

At present all you have to do to make certain the HTML template and files were uploaded is type your site's URL into the browser and add the new folder'southward name to the end.

If y'all see a 404 mistake, don't worry. This is a common WordPress fault and tin can be resolved hands.

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

To prepare this, stay within the File Manager and access your .htaccess file by double-clicking it. So, add the following lawmaking and save your changes:

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

This code volition redirect your alphabetize.php file and load information technology in the browser.

Need to upload whatever HTML file to your WordPress site? This in-depth guide shows yous how to practice it easily. ⬆📂 Click to Tweet

Summary

WordPress is the most used Content Management system effectually because it gives website owners the flexibility needed to create unique websites that stand up out from the competition. Existence able to upload an HTML file to WordPress using any of the in a higher place-mentioned methods is just another example of how WordPress caters to the needs of site owners and gives them the freedom to customize their sites equally needed.

Plus, knowing how to upload an HTML file to WordPress is just a skilful skill to have in instance the need arises. After all, you lot never know when you might come across an HTML template you love or demand a certain type of folio 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 information centers worldwide.
  • Optimization with our congenital-in Application Performance Monitoring.

All of that and much more, in i plan with no long-term contracts, assisted migrations, and a thirty-day-money-back-guarantee. Bank check out our plans or talk to sales to find the plan that's correct for you lot.