By default, you can build pages and create content inside WordPress without ever having to upload whatever custom HTML files. That's because the WordPress cadre comes with built-in content types. In addition, the WordPress theme yous use will probable have its own ready of pre-designed folio templates that yous tin take advantage of to create a unique website that meets your needs.

Across that, there are plenty of WordPress landing page plugins yous can use to create customized page templates for site visitors to country from search results, electronic mail campaigns, and even social media.

So really, there is very little demand to upload HTML files to WordPress because, usually, everything you demand 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 pattern purposes.

That's why in this post, I'll show you how to upload HTML files to WordPress. I'll also discuss in detail why you'll want to have this skill, so no thing 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 lot see 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 correct fashion.

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

So, you 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 prepare 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 bundle of HTML code that y'all tin can easily upload to your website and employ.

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

Information technology's important to remember that HTML templates are different than WordPress themes:

  • WordPress Themes: fifty-fifty 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 within your site's theme are global, meaning they apply to your entire website.
  • HTML Templates: these are standalone zip files that you upload to your website individually. They just affect the await and feel of a unmarried webpage on your website. In other words, changes you make to one uploaded HTML template will only touch that webpage.

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

Why Yous 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 Have Your Favorites: if you were using a bully HTML template on an old website and wanted to use it on your new site, y'all might desire to upload the template to your new site rather than re-do the unabridged thing. This will salvage you time and ensure it looks exactly the same.
    2. You Want a Custom Page Layout: if your electric current WordPress theme doesn't support a specific folio layout, you can upload an HTML file with the design you desire and customize it as needed.

Lastly, you might need to verify your WordPress website with Google Search Console and desire to utilize the recommended method of uploading a Google HTML verification file to exercise and then.

The way your website appears in search engines, particularly a big one like Google, plays a role in your success as a website owner.

That's why tools like Google Search Console 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 it to the first page.

Google Search Console also provides y'all information about your electric current SERPs (search engine result pages), and so you can meliorate your SEO efforts and earn more clickthroughs to your site.

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

Now, let'due south take a wait at the different ways to upload an HTML file to WordPress.

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

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

Yous'll need nothing more than 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 mail service, page, or the Media Library.

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

Upload HTML file in Gutenberg
Upload HTML file in Gutenberg

Here'southward what it looks similar if y'all've disabled Gutenberg and are using the Classic Editor. Merely click Add Media and and so Upload to upload your HTML file.

Choose the HTML file you want to upload and and then click Insert into mail. 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 folio in WordPress and upload information technology directly to your Media Library. Click Media Library in the WordPress dashboard, then Add New, and choose the HTML file from the identify you take it saved (e.g., your computer, hard bulldoze, or external storage).

Keep in listen, y'all might encounter an fault when you upload your HTML file while using Gutenberg. This is what it volition look like:

File type not permitted
File type not permitted

Bank check here for detailed instructions on how to set the "Lamentable, This File Type Is Not Permitted for Security Reasons" Fault 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 made upwardly of multiple files, information technology's best to utilise an FTP client such as FileZilla.

Using an FTP client is also helpful for times you want to work locally on a exam site earlier pushing any changes you make to your live site. This will foreclose whatever unnecessary reanimation if something goes wrong.

To beginning, always create a backup of your website starting time because y'all never know what the HTML file might do when you upload information technology to your site.

Next, open up your FTP client.

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

Subscribe Now

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

sftp details
Get your SFPT details in MYKinsta

When you practice this, you lot should come across your credentials under SFTP/SSH. You'll need 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 by "sftp://". For example, you'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 look like at the meridian of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

After you've entered your credentials, click Quickconnect.

Now information technology's time to upload the HTML file from your computer to WordPress. Start by navigating to your website'due south 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 y'all discover it, correct-click information technology and select Upload to add it to your website. To see all subconscious files in Filezilla follow this brusque tutorial.

HTML file uploaded
HTML file uploaded

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

When y'all do this, you lot'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 last method we're going to share with you lot involves using cPanel and the File Director to upload an HTML file to WordPress.

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

FileManager in cPanel
FileManager in cPanel

In one case y'all're in the File Manager, you take 2 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 it, unzip the HTML file where you take it saved, change the index.html folder to something new, and then rezip the file to proceed uploading to WordPress. If you don't, the HTML template will override your site's homepage.

For this example, we'll create a new binder since there are a few added steps when you do 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 binder, the wp-config.php file,etc.). So 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 folder y'all just created then click Upload to select your HTML file.

Upload button
Upload push

Once this is done, yous'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 different files included in the template. Retrieve this means you'll come across things like CSS, font fashion 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 blazon your site's URL into the browser and add the new folder'due south proper noun to the end.

If y'all run into a 404 error, don't worry. This is a common WordPress error and tin can be resolved hands.

If your server doesn't support redirection, and the alphabetize.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 inside the File Manager and access your .htaccess file by double-clicking it. So, add together the following code and save your changes:

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

This code volition 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 lot how to do it easily. ⬆📂 Click to Tweet

Summary

WordPress is the about used Content Management system around because 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 whatsoever of the to 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 as needed.

Plus, knowing how to upload an HTML file to WordPress is just a good skill to take in instance the need arises. After all, y'all never know when y'all might come across an HTML template y'all love or need a certain type of page layout that your theme doesn't support.


Salve fourth dimension, costs and maximize site operation with:

  • Instant help from WordPress hosting experts, 24/seven.
  • 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 one plan with no long-term contracts, assisted migrations, and a 30-day-money-back-guarantee. Bank check out our plans or talk to sales to detect the programme that'due south right for you lot.