By default, you tin can build pages and create content inside WordPress without ever having to upload any custom HTML files. That's because the WordPress cadre comes with built-in content types. In addition, the WordPress theme y'all utilise volition likely have its own set of pre-designed page templates that you lot can take advantage of to create a unique website that meets your needs.

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

That'southward why in this postal service, I'll evidence you how to upload HTML files to WordPress. I'll also discuss in detail why you'll want to have this skill, so no matter 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 brusque, HTML is the code used to create electronic documents on the internet, which are better known as webpages. In fact, every webpage you come across on the net 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 correct way.

Without HTML, web browsers would non understand the way to visually display the structure of your website for users. Still, with the correct 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 internet.

But what is an HTML template?

An HTML template is a pre-designed set 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 tin easily upload to your website and use.

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

It's important to call up 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 feel of your entire website. Many chemical element changes within your site's theme are global, significant they apply to your entire website.
  • HTML Templates: these are standalone zip files that you upload to your website individually. They but affect the await and feel of a single webpage on your website. In other words, changes yous make to one uploaded HTML template will only touch on that webpage.

Unfortunately, many people don't understand 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

At that place are a few specific reasons why you might want to upload an HTML file to WordPress:

    1. You Have Your Favorites: if you were using a great HTML template on an old website and wanted to use information technology on your new site, yous might desire to upload the template to your new site rather than re-do the entire affair. This will salvage you time and ensure it looks exactly the same.
    2. Y'all Desire a Custom Page Layout: if your current WordPress theme doesn't support a specific folio layout, you tin upload an HTML file with the design you want and customize it equally needed.

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

The way your website appears in search engines, specially a big one similar Google, plays a role in your success as a website possessor.

That'southward why tools like Google Search Panel be. With Google Search Console, y'all guarantee that Google will index and rank your site in relevant search results, all in the hopes of making it to the get-go page.

Google Search Console also provides you data most your electric current SERPs (search engine result pages), and then you can improve your SEO efforts and earn more clickthroughs to your site.

The thing is, to utilize Google Search Console, you need to verify your WordPress website. And it just so happens that i of the best means to exercise 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.

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

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

You'll need aught more 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' block in the Gutenberg Editor. And so, click Upload to upload the HTML file.

Upload HTML file in Gutenberg
Upload HTML file in Gutenberg

Here'south what it looks like if you've disabled Gutenberg and are using the Classic Editor. But click Add Media and so Upload to upload your HTML file.

Choose the HTML file you want to upload then click Insert into mail service. 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 post or page in WordPress and upload information technology directly to your Media Library. Click Media Library in the WordPress dashboard, then Add together New, and choose the HTML file from the place yous have information technology saved (east.chiliad., your computer, hard drive, or external storage).

Go along in mind, you might encounter an error when y'all upload your HTML file while using Gutenberg. This is what it will expect like:

File type not permitted
File type non permitted

Cheque hither for detailed instructions on how to fix the "Sad, This File Type Is Not Permitted for Security Reasons" Fault in WordPress.

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

Uploading HTML files through the WordPress dashboard is the most straightforward method. Yet, for large templates fabricated up of multiple files, it's best to use an FTP client such every bit FileZilla.

Using an FTP client is as well helpful for times yous want to piece of work locally on a test site before pushing any changes you brand to your live site. This will prevent any unnecessary downtime if something goes wrong.

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

Next, open your FTP client.

Now yous'll need to connect to your web host business relationship by entering your FTP credentials. This data is usually constitute in your web hosting business relationship. If you have trouble finding information technology, accomplish out to your host and take them help you.

Subscribe At present

If yous use Kinsta hosting, first log into your MyKinsta account 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 lot do this, you lot 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 data you're going to need to enter into FileZilla:

  • Host: your site'due south domain proper name preceded past "sftp://". For example, you'll need to enter sftp://world wide web.mysite.com.
  • Username: from your MyKinsta dashboard
  • Password: from your MyKinsta dashboard
  • Port: from your MyKinsta dashboard

This is what it will expect similar at the superlative of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

After you've entered your credentials, click Quickconnect.

Now it's fourth dimension to upload the HTML file from your computer to WordPress. Start by 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 find the HTML file you accept saved. When you notice it, right-click information technology and select Upload to add together it to your website. To see all hidden files in Filezilla follow this short tutorial.

HTML file uploaded
HTML file uploaded

You'll come across the file has successfully been uploaded to WordPress. To bank check to brand sure it is visible on your website, type your website's URL into your browser and add the proper noun of the HTML file to the end. For example, it might look similar world wide web.mywebsite.com/html-file.

When you practise this, y'all'll exist redirected to the new webpage you'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 involves using cPanel and the File Manager to upload an HTML file to WordPress.

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

FileManager in cPanel
FileManager in cPanel

Once you lot're in the File Manager, yous have two options:

    1. Create a New Folder: create a new folder in your site's root binder 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 yous want to do information technology, unzip the HTML file where you accept it saved, modify the index.html binder to something new, and then rezip the file to continue uploading to WordPress. If you lot don't, the HTML template will override your site's homepage.

For this example, nosotros'll create a new folder since there are a few added steps when you do 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 folder, the wp-config.php file,etc.). And so click New Folder.

Selecting New Folder from File Manager settings

Proper noun your new folder and click Create New Binder.

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

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

Upload button
Upload button

Once this is done, you'll see your zipped HTML file in the folder.

Zipped HTML file
Zipped HTML file

Now 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 end the unzipping process. When the HTML file has been unzipped, you'll see all the different files included in the template. Retrieve this means yous'll see things like CSS, font manner files, images, and JavaScript.

Extracted HTML files
Extracted HTML files

Now all you take to do to make sure the HTML template and files were uploaded is type your site's URL into the browser and add together the new folder'due south proper noun to the cease.

If you encounter a 404 fault, don't worry. This is a common WordPress error and tin exist 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 see a 404 error after uploading your HTML files.

To fix this, stay within the File Manager and admission your .htaccess file by double-clicking information technology. Then, add the post-obit code and save your changes:

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

This code will 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 how to practice it easily. ⬆📂 Click to Tweet

Summary

WordPress is the nigh 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 higher up-mentioned methods is only another example of how WordPress caters to the needs of site owners and gives them the freedom to customize their sites every bit needed.

Plus, knowing how to upload an HTML file to WordPress is simply a expert skill to take in case the need arises. After all, yous never know when you might come up across an HTML template yous love or demand a sure type of page layout that your theme doesn't back up.


Salvage time, costs and maximize site performance with:

  • Instant help from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience attain with 29 data centers worldwide.
  • Optimization with our born Awarding 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. Cheque out our plans or talk to sales to observe the plan that's right for you.