By default, you lot can build pages and create content inside WordPress without ever having to upload any custom HTML files. That'southward because the WordPress core comes with built-in content types. In addition, the WordPress theme you employ will probable take its own gear up of pre-designed folio templates that y'all can take advantage of to create a unique website that meets your needs.

Beyond that, there are plenty of WordPress landing page plugins you tin can use to create customized page templates for site visitors to state 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 lot demand to format your website is already in that location. That said, there are some reasons why you'd want to know how to upload an HTML file to WordPress, some of which go across uploading a template for design purposes.

That'due south 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 lot're prepared.

What is an HTML File?

HTML stands for Hypertext Markup Linguistic communication and was first adult 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 y'all see on the internet 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 right manner.

Without HTML, spider web browsers would not sympathize the way 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 lawmaking for calculation in some blueprint 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 net.

Only what is an HTML template?

An HTML template is a pre-designed set 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 bundle of HTML code that you can easily upload to your website and apply.

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

It's important to call back 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 unabridged website. Many element changes inside your site's theme are global, significant they utilize to your entire website.
  • HTML Templates: these are standalone zippo files that y'all upload to your website individually. They just affect the expect and feel of a unmarried webpage on your website. In other words, changes you lot make to one uploaded HTML template volition but affect 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

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

    1. You Accept Your Favorites: if you were using a great HTML template on an erstwhile website and wanted to utilise it on your new site, y'all might want to upload the template to your new site rather than re-do the unabridged thing. This will relieve you lot time and ensure it looks exactly the same.
    2. You Desire a Custom Folio Layout: if your current WordPress theme doesn't support a specific folio layout, you tin upload an HTML file with the pattern you want and customize it equally needed.

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

The fashion your website appears in search engines, especially a big ane like Google, plays a role in your success as a website owner.

That's why tools similar Google Search Console exist. 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 start page.

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

The thing is, to utilise Google Search Console, y'all demand to verify your WordPress website. And information technology just and then happens that one of the all-time ways to do this is to upload a Google HTML verification file.

At present, permit's accept a wait at the dissimilar ways to upload an HTML file to WordPress.

1. 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 nada 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 postal service or folio, insert a 'File' cake in the Gutenberg Editor. 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 y'all've disabled Gutenberg and are using the Classic Editor. Just click Add Media and so Upload to upload your HTML file.

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

You lot can skip uploading the HTML file to a postal service 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 accept it saved (e.k., your computer, hard bulldoze, or external storage).

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

File type not permitted
File type not permitted

Cheque here for detailed instructions on how to ready the "Sorry, This File Type Is Not Permitted for Security Reasons" Mistake in WordPress.

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

Uploading HTML files through the WordPress dashboard is the about straightforward method. However, for large templates made upwardly of multiple files, it's all-time to utilize an FTP client such as FileZilla.

Using an FTP customer is besides helpful for times you lot want to piece of work locally on a test site before pushing any changes y'all make to your live site. This will prevent any unnecessary reanimation if something goes wrong.

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

Next, open your FTP customer.

Now you'll need to connect to your web host account by entering your FTP credentials. This data is commonly found in your web hosting business relationship. If yous accept trouble finding it, accomplish out to your host and accept them assistance you.

Subscribe Now

If you utilise Kinsta hosting, commencement 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 yous exercise this, you should run across your credentials nether SFTP/SSH. You'll demand your username, password, and port.

sftp details username password port
SFTP details

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

  • Host: your site's domain name preceded past "sftp://". For example, you lot'll demand to enter sftp://www.mysite.com.
  • Username: from your MyKinsta dashboard
  • Password: from your MyKinsta dashboard
  • Port: from your MyKinsta dashboard

This is what information technology will await like at the superlative of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

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

Now it's time to upload the HTML file from your estimator to WordPress. Offset by navigating to your website'southward root binder (which contains the wp-content folder, the wp-config.php file,etc.) on the right side.

So, become to the left side and detect the HTML file you have saved. When you detect 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

Y'all'll see the file has successfully been uploaded to WordPress. To check to make certain it is visible on your website, type your website'due south URL into your browser and add the proper name of the HTML file to the cease. For instance, it might wait like world wide web.mywebsite.com/html-file.

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

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

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

Outset past logging into your hosting business relationship'southward cPanel and accessing the File Managing director.

FileManager in cPanel
FileManager in cPanel

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

    1. Create a New Folder: create a new binder in your site's 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 you lot want to practise information technology, unzip the HTML file where you lot have information technology saved, change the index.html folder to something new, so rezip the file to continue uploading to WordPress. If you don't, the HTML template volition 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 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.). Then click New Binder.

Selecting New Folder from File Manager settings

Name your new binder and click Create New Folder.

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

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

Upload button
Upload push

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

Zipped HTML file
Zipped HTML file

Now yous 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 stop the unzipping process. When the HTML file has been unzipped, you lot'll see all the different files included in the template. Call up this means you'll see things similar CSS, font style files, images, and JavaScript.

Extracted HTML files
Extracted HTML files

Now 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's name to the terminate.

If you lot run into a 404 error, don't worry. This is a mutual WordPress error and tin 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 come across a 404 error after uploading your HTML files.

To gear up this, stay inside the File Managing director and admission your .htaccess file by double-clicking it. Then, add the following code and save your changes:

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

This code volition redirect your index.php file and load it in the browser.

Need to upload whatsoever HTML file to your WordPress site? This in-depth guide shows you how to do it easily. ⬆📂 Click to Tweet

Summary

WordPress is the nearly used Content Direction organisation effectually 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 whatsoever of the above-mentioned methods is but another case 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 take in case the demand arises. After all, yous never know when you might come beyond an HTML template you love or need a certain type of page layout that your theme doesn't back up.


Save time, costs and maximize site functioning with:

  • Instant assist from WordPress hosting experts, 24/seven.
  • Cloudflare Enterprise integration.
  • Global audience reach with 29 information centers worldwide.
  • Optimization with our built-in Application Operation Monitoring.

All of that and much more, in one program with no long-term contracts, assisted migrations, and a xxx-day-coin-back-guarantee. Check out our plans or talk to sales to find the programme that'due south right for yous.