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

Beyond that, there are plenty of WordPress landing folio plugins yous can employ to create customized page templates for site visitors to land from search results, e-mail campaigns, and even social media.

And so really, at that place 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 desire to know how to upload an HTML file to WordPress, some of which go across uploading a template for design purposes.

That'southward why in this mail, I'll show you how to upload HTML files to WordPress. I'll also talk over in item why you'll desire to take this skill, then no thing 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 short, HTML is the lawmaking used to create electronic documents on the internet, which are better known every bit webpages. In fact, every webpage you lot run into on the internet was written using HTML code.

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

Without HTML, web browsers would not empathise the mode to visually display the construction of your website for users. Nevertheless, with the right HTML code creating the foundation for your webpages, and a petty CSS code for adding in some design elements, your website appears perfectly for site visitors.

What is an HTML Template?

So, you lot know that HTML is the code responsible for creating the structure of unmarried webpages on the internet.

But what is an HTML template?

An HTML template is a pre-designed gear up of HTML files that include things similar text, images, and support files for font styles and Javascript. In other words, an HTML template is a pre-made package of HTML code that you can easily upload to your website and use.

When you employ 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 of your site.

It's important to call back that HTML templates are dissimilar than WordPress themes:

  • WordPress Themes: fifty-fifty though you plug in text and images into WordPress themes, they are responsible for the expect and feel of your entire website. Many element changes within your site's theme are global, pregnant they utilise to your entire website.
  • HTML Templates: these are standalone cipher files that yous upload to your website individually. They only touch the look and feel of a unmarried webpage on your website. In other words, changes y'all make to one uploaded HTML template will just affect that webpage.

Unfortunately, many people don't understand the differences betwixt 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 yous might want to upload an HTML file to WordPress:

    1. You Take Your Favorites: if y'all were using a swell HTML template on an old website and wanted to use information technology on your new site, you might want to upload the template to your new site rather than re-exercise the entire thing. This will save you fourth dimension and ensure information technology looks exactly the same.
    2. You Want a Custom Page Layout: if your current WordPress theme doesn't support a specific page layout, you can upload an HTML file with the design yous want and customize it as needed.

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

The style your website appears in search engines, particularly a large one like Google, plays a function in your success as a website owner.

That's why tools like Google Search Console exist. With Google Search Console, yous guarantee that Google will index and rank your site in relevant search results, all in the hopes of making it to the showtime page.

Google Search Console also provides yous data nigh your current SERPs (search engine effect pages), so yous can meliorate your SEO efforts and earn more than clickthroughs to your site.

The thing is, to use Google Search Console, you demand to verify your WordPress website. And information technology but so happens that one of the best means to do this is to upload a Google HTML verification file.

Now, permit's take a look at the unlike means 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 demand nothing 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 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's what information technology looks like if y'all've disabled Gutenberg and are using the Classic Editor. Just click Add Media and and then Upload to upload your HTML file.

Choose the HTML file you lot want to upload 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 tin 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 accept it saved (e.g., your figurer, hard drive, or external storage).

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

File type not permitted
File type not permitted

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

Using an FTP client is likewise helpful for times you lot want to piece of work locally on a test site before pushing any changes you brand to your live site. This volition prevent whatsoever unnecessary reanimation if something goes wrong.

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

Next, open your FTP client.

Now you lot'll need to connect to your web host account by entering your FTP credentials. This information is usually found in your web hosting account. If y'all have trouble finding information technology, reach out to your host and have them assistance you.

Subscribe Now

If y'all apply Kinsta hosting, first 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 yous practise this, you should see your credentials under SFTP/SSH. You'll need your username, countersign, and port.

sftp details username password port
SFTP details

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

  • Host: your site's domain name preceded by "sftp://". For case, you'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 it volition look like at the top of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

Afterward you've entered your credentials, click Quickconnect.

Now it's time to upload the HTML file from your computer to WordPress. First by navigating to your website'southward 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 y'all have saved. When you find 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

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

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

three. 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 Managing 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

Once you're in the File Managing director, you have two options:

    1. Create a New Binder: create a new folder in your site'southward root binder 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 want to exercise it, unzip the HTML file where you lot have it saved, change the index.html binder to something new, and then rezip the file to go along uploading to WordPress. If you don't, the HTML template volition override your site's homepage.

For this example, we'll create a new folder since there are a few added steps when you practice this.

Create a New Folder and Upload an HTML File to WordPress

Start, 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 folder 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 so click Upload to select your HTML file.

Upload button
Upload button

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

Zipped HTML file
Zipped HTML file

At present you need to unzip the HTML file past correct-clicking and selecting Excerpt.

Extract HTML file
Extract HTML file

When the modal window pops up, click Extract Files to finish the unzipping procedure. When the HTML file has been unzipped, you'll come across all the different files included in the template. Retrieve this means yous'll run into things like CSS, font style files, images, and JavaScript.

Extracted HTML files
Extracted HTML files

Now all you lot have to do to make certain 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 name to the terminate.

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

If your server doesn't back up redirection, and the index.php file is not redirected on loading the URL in your browser, yous'll see a 404 error after uploading your HTML files.

To fix this, stay inside the File Manager and admission your .htaccess file by double-clicking it. And then, add together the following code and save your changes:

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

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 how to exercise it easily. ⬆📂 Click to Tweet

Summary

WordPress is the almost used Content Management 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 above-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 have in case the need arises. Subsequently all, y'all never know when you lot might come up across an HTML template you love or need a sure type of page layout that your theme doesn't back up.


Save fourth dimension, costs and maximize site functioning with:

  • Instant aid from WordPress hosting experts, 24/vii.
  • Cloudflare Enterprise integration.
  • Global audience reach with 29 data centers worldwide.
  • Optimization with our congenital-in Application Performance Monitoring.

All of that and much more, in one program with no long-term contracts, assisted migrations, and a 30-day-money-dorsum-guarantee. Check out our plans or talk to sales to find the program that's right for you.