By default, you tin can build pages and create content within WordPress without e'er having to upload whatsoever custom HTML files. That's because the WordPress core comes with built-in content types. In improver, the WordPress theme you employ will likely have its own set of pre-designed page templates that you tin take reward of to create a unique website that meets your needs.

Beyond that, there are plenty of WordPress landing page plugins y'all can apply to create customized folio templates for site visitors to state from search results, email campaigns, and even social media.

So really, in that location is very little demand 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 yous'd want to know how to upload an HTML file to WordPress, some of which become beyond uploading a template for pattern purposes.

That's why in this postal service, I'll show you how to upload HTML files to WordPress. I'll likewise discuss in detail why you'll desire 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 first developed by Tim Berners-Lee in 1990. In curt, HTML is the code used to create electronic documents on the internet, which are meliorate known as webpages. In fact, every webpage you meet on the internet was written using HTML code.

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

Without HTML, web browsers would not understand the way to visually display the structure 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?

And then, y'all know that HTML is the code responsible for creating the structure of single webpages on the internet.

But what is an HTML template?

An HTML template is a pre-designed prepare 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 yous can easily upload to your website and utilize.

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

It'due south important to call up that HTML templates are different than WordPress themes:

  • WordPress Themes: even though y'all plug in text and images into WordPress themes, they are responsible for the look and feel of your entire website. Many element changes within your site's theme are global, meaning they employ to your entire website.
  • HTML Templates: these are standalone zip files that you upload to your website individually. They only touch on the look and experience of a single webpage on your website. In other words, changes you brand to one uploaded HTML template volition simply affect that webpage.

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

Why You Would Need 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. Yous Have Your Favorites: if y'all were using a great HTML template on an former website and wanted to utilize information technology on your new site, you might desire to upload the template to your new site rather than re-do the entire thing. This will save you time and ensure it looks exactly the aforementioned.
    2. You Desire 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, y'all might need to verify your WordPress website with Google Search Console and desire to use the recommended method of uploading a Google HTML verification file to practise so.

The mode your website appears in search engines, peculiarly a big one like Google, plays a part in your success every bit a website owner.

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

Google Search Console as well provides you data almost your current SERPs (search engine event pages), so you lot can better your SEO efforts and earn more clickthroughs to your site.

The thing is, to use Google Search Console, you need to verify your WordPress website. And information technology just so happens that one of the all-time ways to do this is to upload a Google HTML verification file.

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

i. 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 lot'll need goose egg more than the backend of your website and an HTML template to consummate this procedure since yous'll be uploading the HTML file straight through a postal service, folio, 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

Here's what information technology looks similar if you lot've disabled Gutenberg and are using the Archetype Editor. Only click Add Media and and so Upload to upload your HTML file.

Choose the HTML file y'all desire to upload and and so click Insert into post. Doing this inserts the link of the file into the mail service or page and automatically saves it to your Media Library.

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

Y'all can skip uploading the HTML file to a post or page in WordPress and upload information technology straight to your Media Library. Click Media Library in the WordPress dashboard, and then Add New, and cull the HTML file from the place you have it saved (e.one thousand., your computer, hard bulldoze, or external storage).

Go on in mind, you might encounter an error when you upload your HTML file while using Gutenberg. This is what information technology will expect like:

File type not permitted
File type not permitted

Check here for detailed instructions on how to fix the "Sorry, This File Type Is Non 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 near straightforward method. However, for large templates made upwardly of multiple files, it's best to utilize an FTP client such as FileZilla.

Using an FTP client is likewise helpful for times you desire to work locally on a exam site before pushing any changes you make to your live site. This will forbid any unnecessary downtime if something goes wrong.

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

Side by side, open your FTP customer.

Now you'll demand to connect to your web host account by entering your FTP credentials. This information is ordinarily establish in your web hosting account. If you have trouble finding information technology, reach out to your host and have them help you.

Subscribe Now

If you use Kinsta hosting, commencement log into your MyKinsta account and click on Sites in the dashboard and so on Info to get the credentials needed.

sftp details
Get your SFPT details in MYKinsta

When you do this, y'all should run across your credentials under SFTP/SSH. Yous'll need your username, countersign, and port.

sftp details username password port
SFTP details

Here'southward the data you're going to demand to enter into FileZilla:

  • Host: your site's domain proper noun preceded past "sftp://". For example, y'all'll demand 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 information technology will wait like at the peak of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

Later y'all've entered your credentials, click Quickconnect.

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

So, become to the left side and find the HTML file y'all have saved. When you discover it, correct-click it and select Upload to add together information technology to your website. To encounter 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 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 finish. For example, it might await similar www.mywebsite.com/html-file.

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

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

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

First by logging into your hosting account's cPanel and accessing the File Manager.

FileManager in cPanel
FileManager in cPanel

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

    1. Create a New Folder: create a new folder in your site's 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 do it, unzip the HTML file where you accept it saved, change the alphabetize.html binder to something new, and and so rezip the file to keep uploading to WordPress. If you don't, the HTML template volition override your site's homepage.

For this instance, we'll create a new folder since at that place are a few added steps when you do this.

Create a New Binder and Upload an HTML File to WordPress

Offset, 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

Name your new binder and click Create New Binder.

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

Double click on the folder you just created and then click Upload to select your HTML file.

Upload button
Upload push button

Once this is washed, y'all'll run across your zipped HTML file in the binder.

Zipped HTML file
Zipped HTML file

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

Extract HTML file
Excerpt HTML file

When the modal window pops up, click Extract Files to end the unzipping process. When the HTML file has been unzipped, y'all'll see all the different files included in the template. Call up this means you lot'll see things like CSS, font fashion files, images, and JavaScript.

Extracted HTML files
Extracted HTML files

Now all y'all have to do to brand sure the HTML template and files were uploaded is type your site's URL into the browser and add the new folder'south name to the end.

If you run into a 404 mistake, don't worry. This is a mutual WordPress error and tin exist resolved easily.

If your server doesn't support redirection, and the index.php file is non 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 past double-clicking information technology. Then, add the following code and save your changes:

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

This lawmaking 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 y'all how to exercise information technology easily. ⬆📂 Click to Tweet

Summary

WordPress is the most used Content Management system around because it gives website owners the flexibility needed to create unique websites that stand out from the contest. Being able to upload an HTML file to WordPress using any of the above-mentioned methods is merely another instance of how WordPress caters to the needs of site owners and gives them the freedom to customize their sites as needed.

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


Salve time, 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 congenital-in Application Operation Monitoring.

All of that and much more, in one plan with no long-term contracts, assisted migrations, and a 30-twenty-four hour period-coin-dorsum-guarantee. Check out our plans or talk to sales to find the programme that'south right for you.