By default, you can build pages and create content inside WordPress without ever having to upload any custom HTML files. That's considering the WordPress cadre comes with built-in content types. In improver, the WordPress theme yous use volition likely take its own set up of pre-designed page templates that y'all tin can take advantage of to create a unique website that meets your needs.

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

And so really, in that location is very little demand to upload HTML files to WordPress considering, usually, everything you lot need to format your website is already in that location. That said, there are some reasons why you lot'd want to know how to upload an HTML file to WordPress, some of which go across uploading a template for design purposes.

That's why in this mail service, I'll show you lot how to upload HTML files to WordPress. I'll also talk over in detail why yous'll want to take this skill, then no matter what, you're prepared.

What is an HTML File?

HTML stands for Hypertext Markup Language and was offset developed past Tim Berners-Lee in 1990. In short, HTML is the code used to create electronic documents on the net, which are better known equally webpages. In fact, every webpage you encounter on the internet was written using HTML code.

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

Without HTML, web browsers would non understand the style to visually brandish the structure of your website for users. However, with the right HTML lawmaking creating the foundation for your webpages, and a niggling CSS code for calculation in some design 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 internet.

But what is an HTML template?

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

When you employ an HTML template on your WordPress website, yous upload the file and plug in the text and images y'all want the template to display on the front cease of your site.

It's of import 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 within your site's theme are global, significant they utilize to your entire website.
  • HTML Templates: these are standalone zip files that you upload to your website individually. They simply impact the look and experience of a single webpage on your website. In other words, changes you make to one uploaded HTML template will only impact that webpage.

Unfortunately, many people don't understand the differences betwixt themes and HTML templates and employ 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 Have Your Favorites: if you were using a slap-up HTML template on an old website and wanted to utilize information technology on your new site, you might want to upload the template to your new site rather than re-do the unabridged thing. This will save you lot time and ensure information technology looks exactly the same.
    2. You Want a Custom Folio Layout: if your current WordPress theme doesn't support a specific page layout, yous can upload an HTML file with the design yous desire and customize it as needed.

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

The manner your website appears in search engines, peculiarly a large ane like Google, plays a role in your success as a website owner.

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

Google Search Console also provides y'all information about your current SERPs (search engine outcome pages), so you can improve 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 it simply and then happens that one of the best means to practise this is to upload a Google HTML verification file.

Now, allow's accept a look at the different ways to upload an HTML file to WordPress.

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

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

You'll need nothing more 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 post or page, insert a 'File' block 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 you've disabled Gutenberg and are using the Classic Editor. Simply click Add Media and then Upload to upload your HTML file.

Cull the HTML file you lot want to upload and and then 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

You lot 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, then Add together New, and cull the HTML file from the place you have it saved (e.chiliad., your computer, hard drive, or external storage).

Proceed in listen, you might encounter an mistake 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 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 virtually straightforward method. However, for big templates fabricated upward of multiple files, it's best to utilize an FTP client such as FileZilla.

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

To start, e'er create a fill-in of your website get-go because y'all never know what the HTML file might do when yous upload information technology to your site.

Next, open your FTP client.

Now y'all'll need to connect to your web host account by entering your FTP credentials. This data is usually plant in your web hosting account. If you have problem finding it, reach out to your host and have them help you lot.

Subscribe Now

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

sftp details
Go your SFPT details in MYKinsta

When you do this, y'all should see your credentials under SFTP/SSH. You lot'll need 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 by "sftp://". For example, 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 will await similar at the top of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

After you lot've entered your credentials, click Quickconnect.

Now information technology'due south time to upload the HTML file from your estimator to WordPress. Start by navigating to your website's 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 notice the HTML file you have saved. When you find it, right-click it and select Upload to add it to your website. To see all hidden files in Filezilla follow this short tutorial.

HTML file uploaded
HTML file uploaded

Yous'll see the file has successfully been uploaded to WordPress. To check to make sure it is visible on your website, type your website'due south URL into your browser and add together the name of the HTML file to the finish. For instance, it might expect like www.mywebsite.com/html-file.

When you do this, you'll exist redirected to the new webpage yous'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 involves using cPanel and the File Manager to upload an HTML file to WordPress.

Showtime past logging into your hosting account's cPanel and accessing the File Director.

FileManager in cPanel
FileManager in cPanel

In one case you lot're in the File Manager, y'all have ii options:

    1. Create a New Binder: create a new folder in your site'southward 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 desire to do it, unzip the HTML file where you have it saved, modify the alphabetize.html folder to something new, and so rezip the file to proceed uploading to WordPress. If yous don't, the HTML template will override your site's homepage.

For this example, nosotros'll create a new folder since in that location 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 folder, the wp-config.php file,etc.). And so click New Folder.

Selecting New Folder from File Manager settings

Name your new folder and click Create New Folder.

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

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

Upload button
Upload button

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

Zipped HTML file
Zipped HTML file

Now y'all demand to unzip the HTML file by right-clicking and selecting Excerpt.

Extract HTML file
Excerpt HTML file

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

Extracted HTML files
Extracted HTML files

At present all you take to exercise to brand sure the HTML template and files were uploaded is type your site's URL into the browser and add together the new folder'due south name to the stop.

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

To fix this, stay within the File Managing director and access your .htaccess file by double-clicking it. Then, add the following lawmaking and relieve your changes:

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

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

Summary

WordPress is the most used Content Management organization 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 whatsoever of the above-mentioned methods is just some other 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 accept in case the need arises. After all, you never know when you might come up across an HTML template you love or need a certain blazon 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 audition achieve with 29 information centers worldwide.
  • Optimization with our congenital-in Application Performance Monitoring.

All of that and much more, in ane plan with no long-term contracts, assisted migrations, and a xxx-24-hour interval-money-back-guarantee. Check out our plans or talk to sales to detect the program that's right for you.