Past default, you tin can build pages and create content inside WordPress without ever having to upload any custom HTML files. That'due south because the WordPress cadre comes with born content types. In addition, the WordPress theme you use will likely accept its own set of pre-designed folio templates that you can have advantage of to create a unique website that meets your needs.

Across that, in that location are enough of WordPress landing folio plugins you can use to create customized folio 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 yous 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 go beyond uploading a template for design purposes.

That's why in this mail, I'll testify y'all how to upload HTML files to WordPress. I'll besides discuss in item why you'll want to accept this skill, so no matter what, you're prepared.

What is an HTML File?

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

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

Without HTML, spider web browsers would not sympathise the way to visually brandish the construction of your website for users. Notwithstanding, with the right HTML code creating the foundation for your webpages, and a little CSS code for adding in some blueprint 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 construction of single webpages on the cyberspace.

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-fabricated packet of HTML lawmaking that you can hands upload to your website and utilise.

When you lot 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 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 element changes inside your site's theme are global, meaning they apply to your unabridged website.
  • HTML Templates: these are standalone zip files that yous upload to your website individually. They just affect the expect and feel of a single webpage on your website. In other words, changes you make to one uploaded HTML template will just bear upon 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 Need to Upload an HTML File to WordPress

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

    1. You lot Accept Your Favorites: if yous were using a cracking HTML template on an onetime website and wanted to employ it on your new site, you might want to upload the template to your new site rather than re-do the entire thing. This will salvage you time and ensure it looks exactly the same.
    2. You Want a Custom Page Layout: if your current WordPress theme doesn't back up a specific page layout, you can upload an HTML file with the design you want and customize information technology every bit needed.

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

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

That's why tools like Google Search Console exist. With Google Search Console, you lot 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 information nearly your current SERPs (search engine outcome pages), then you can improve your SEO efforts and earn more clickthroughs to your site.

The affair is, to use Google Search Console, y'all demand to verify your WordPress website. And it merely then happens that 1 of the best ways to do 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.

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

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

You'll need zilch 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 postal service, page, or the Media Library.

To upload an HTML file through a mail service or folio, 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'southward what it looks like if yous've disabled Gutenberg and are using the Classic Editor. Merely click Add Media and then Upload to upload your HTML file.

Choose the HTML file y'all desire to upload and then click Insert into mail. 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

Yous tin 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, and so Add New, and choose the HTML file from the place you have it saved (e.g., your computer, hard drive, or external storage).

Keep in listen, you might run into an fault when you upload your HTML file while using Gutenberg. This is what it will look like:

File type not permitted
File type not permitted

Check hither for detailed instructions on how to fix the "Sorry, This File Blazon Is Not Permitted for Security Reasons" Error in WordPress.

2. 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 big templates fabricated up of multiple files, information technology'south best to use an FTP customer such as FileZilla.

Using an FTP client is too helpful for times you want to piece of work locally on a test site before pushing whatsoever changes you make to your live site. This volition prevent whatever unnecessary downtime if something goes wrong.

To start, e'er create a backup of your website first because you never know what the HTML file might exercise when you upload it to your site.

Adjacent, open your FTP client.

Now you'll need to connect to your web host account by entering your FTP credentials. This information is commonly found in your spider web hosting account. If yous have trouble finding it, attain out to your host and have them assistance yous.

Subscribe Now

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

sftp details
Go your SFPT details in MYKinsta

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

sftp details username password port
SFTP details

Here's the data you're going to need to enter into FileZilla:

  • Host: your site'south domain proper name preceded by "sftp://". For example, 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 superlative of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

Later you've entered your credentials, click Quickconnect.

At present information technology's time to upload the HTML file from your calculator to WordPress. Start past navigating to your website's root folder (which contains the wp-content binder, the wp-config.php file,etc.) on the right side.

Then, get to the left side and detect the HTML file you have saved. When you detect information technology, right-click information technology and select Upload to add it to your website. To see all subconscious files in Filezilla follow this curt tutorial.

HTML file uploaded
HTML file uploaded

You'll come across the file has successfully been uploaded to WordPress. To check to make sure it is visible on your website, type your website'south URL into your browser and add together the name of the HTML file to the end. For instance, it might look like world wide web.mywebsite.com/html-file.

When you practise this, y'all'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 concluding method nosotros're going to share with you involves using cPanel and the File Manager to upload an HTML file to WordPress.

Start by logging into your hosting account's cPanel and accessing the File Managing director.

FileManager in cPanel
FileManager in cPanel

Once you lot're in the File Managing director, you accept 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 Binder Direct: rather than create a new folder, upload the HTML directly to WordPress. If this is how yous 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 keep uploading to WordPress. If you lot don't, the HTML template will override your site's homepage.

For this instance, we'll create a new folder since there are a few added steps when yous do this.

Create a New Folder and Upload an HTML File to WordPress

Starting time, 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 noun your new folder and click Create New Binder.

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

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

Upload button
Upload button

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

Zipped HTML file
Zipped HTML file

Now y'all need to unzip the HTML file past right-clicking and selecting Extract.

Extract HTML file
Extract HTML file

When the modal window pops up, click Excerpt Files to finish the unzipping procedure. When the HTML file has been unzipped, you'll see all the different files included in the template. Remember this ways you'll run across things like CSS, font style files, images, and JavaScript.

Extracted HTML files
Extracted HTML files

At present all you accept 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'southward proper noun to the end.

If you run into a 404 error, don't worry. This is a common WordPress error and tin can be 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 ready this, stay within the File Manager and access your .htaccess file by double-clicking it. Then, add the following lawmaking and save your changes:

          RewriteRule ^(.*)index\.(php|html?)$ /$i [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 how to exercise it hands. ⬆📂 Click to Tweet

Summary

WordPress is the well-nigh used Content Direction system around considering information technology 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 above-mentioned methods is but some other example 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 simply a good skill to have in example the need arises. After all, you never know when you lot might come up across an HTML template yous love or need a sure type 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 than, in ane program with no long-term contracts, assisted migrations, and a 30-mean solar day-money-dorsum-guarantee. Cheque out our plans or talk to sales to notice the programme that's right for you.