By default, you can build pages and create content within WordPress without ever having to upload whatsoever custom HTML files. That'southward because the WordPress cadre comes with built-in content types. In addition, the WordPress theme you use will likely have its ain set of pre-designed page templates that you tin can take advantage of to create a unique website that meets your needs.

Beyond that, at that place are enough of WordPress landing page plugins you can use to create customized page templates for site visitors to land from search results, e-mail campaigns, and even social media.

So really, there is very trivial demand to upload HTML files to WordPress because, usually, everything you lot demand to format your website is already at that place. That said, there are some reasons why yous'd want to know how to upload an HTML file to WordPress, some of which get beyond uploading a template for blueprint purposes.

That'due south why in this post, I'll show you how to upload HTML files to WordPress. I'll too discuss in detail why y'all'll want to have this skill, so no matter what, you're prepared.

What is an HTML File?

HTML stands for Hypertext Markup Language and was kickoff adult by Tim Berners-Lee in 1990. In short, HTML is the code used to create electronic documents on the net, which are meliorate 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 certain your content's text and images are formatted in the right style.

Without HTML, spider web browsers would not sympathise the manner to visually display the structure of your website for users. Nevertheless, with the correct HTML code creating the foundation for your webpages, and a little CSS code for calculation in some design elements, your website appears perfectly for site visitors.

What is an HTML Template?

And then, you know that HTML is the code responsible for creating the construction of unmarried webpages on the cyberspace.

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-fabricated bundle of HTML code that you lot can hands upload to your website and use.

When you employ an HTML template on your WordPress website, you 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 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, significant they apply to your entire website.
  • HTML Templates: these are standalone goose egg files that yous upload to your website individually. They only impact the expect and experience of a single webpage on your website. In other words, changes you lot make to one uploaded HTML template will only impact that webpage.

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

Why Y'all Would Need to Upload an HTML File to WordPress

In that location are a few specific reasons why you might desire to upload an HTML file to WordPress:

    1. You lot Have Your Favorites: if you were using a smashing 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-practise the entire thing. This will save you fourth dimension and ensure it looks exactly the same.
    2. Y'all Want a Custom Page Layout: if your current WordPress theme doesn't support a specific folio layout, you tin can upload an HTML file with the design y'all want and customize it as needed.

Lastly, you 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, especially a big one like Google, plays a function in your success as a website owner.

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

Google Search Console also provides you data about your current SERPs (search engine event pages), then you tin improve your SEO efforts and earn more clickthroughs to your site.

The matter is, to use Google Search Console, yous need to verify your WordPress website. And it only so happens that one of the all-time ways to do this is to upload a Google HTML verification file.

Now, let's take 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 beginning method for uploading an HTML file to WordPress we'll look at involves the WordPress dashboard.

You'll need nothing more than the backend of your website and an HTML template to consummate this process since y'all'll be uploading the HTML file direct through a mail service, folio, or the Media Library.

To upload an HTML file through a post or page, insert a 'File' cake 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 it looks like if y'all've disabled Gutenberg and are using the Classic Editor. Just click Add Media and then Upload to upload your HTML file.

Choose the HTML file yous want to upload and then click Insert into post. 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

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

Go along in mind, you might run across an error when you upload your HTML file while using Gutenberg. This is what information technology will expect similar:

File type not permitted
File type not permitted

Check here for detailed instructions on how to fix the "Distressing, This File Type Is Not Permitted for Security Reasons" Error in WordPress.

two. Method: How to Upload HTML File to WordPress Using an FTP Customer

Uploading HTML files through the WordPress dashboard is the most straightforward method. Yet, for large templates fabricated upwardly of multiple files, it'south best to apply an FTP client such as FileZilla.

Using an FTP client is also helpful for times you desire to work locally on a test site before pushing any changes y'all make to your live site. This will prevent any unnecessary downtime if something goes wrong.

To get-go, always create a backup of your website kickoff because you never know what the HTML file might do when you upload it to your site.

Adjacent, open your FTP client.

Now y'all'll need to connect to your web host business relationship by entering your FTP credentials. This information is commonly constitute in your spider web hosting account. If you accept trouble finding it, reach out to your host and have them aid you.

Subscribe Now

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

sftp details
Go your SFPT details in MYKinsta

When you do this, you should come across your credentials under SFTP/SSH. Yous'll need your username, password, and port.

sftp details username password port
SFTP details

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

  • Host: your site's domain proper name preceded by "sftp://". For instance, you'll need to enter sftp://www.mysite.com.
  • Username: from your MyKinsta dashboard
  • Countersign: from your MyKinsta dashboard
  • Port: from your MyKinsta dashboard

This is what it volition look like at the tiptop of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

After yous've entered your credentials, click Quickconnect.

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

And then, go to the left side and notice the HTML file you take saved. When you lot find information technology, right-click it and select Upload to add it to your website. To run into all hidden files in Filezilla follow this short tutorial.

HTML file uploaded
HTML file uploaded

You'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 exercise this, you'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 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're in the File Director, you take two options:

    1. Create a New Binder: create a new folder in your site'due south root binder to upload your HTML file to.
    2. Upload to Root Folder Directly: rather than create a new folder, upload the HTML straight to WordPress. If this is how y'all want to do it, unzip the HTML file where you have information technology saved, modify the index.html folder to something new, and then rezip the file to go on uploading to WordPress. If you don't, the HTML template volition override your site's homepage.

For this instance, we'll create a new binder since there are a few added steps when you exercise this.

Create a New Binder and Upload an HTML File to WordPress

Showtime, 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 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 push

Once this is done, y'all'll meet your zipped HTML file in the folder.

Zipped HTML file
Zipped HTML file

At present 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 finish the unzipping process. When the HTML file has been unzipped, y'all'll see all the dissimilar files included in the template. Think this ways you'll see things like CSS, font style files, images, and JavaScript.

Extracted HTML files
Extracted HTML files

Now all you have to do to brand certain the HTML template and files were uploaded is type your site's URL into the browser and add together the new folder's name to the stop.

If you encounter a 404 fault, don't worry. This is a common WordPress error and can 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, y'all'll see a 404 error after uploading your HTML files.

To prepare this, stay inside the File Director and access your .htaccess file past double-clicking it. So, add the following code 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.

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

Summary

WordPress is the most used Content Management system around considering it gives website owners the flexibility needed to create unique websites that stand out from the contest. Existence able to upload an HTML file to WordPress using any of the above-mentioned methods is just another case of how WordPress caters to the needs of site owners and gives them the freedom to customize their sites equally needed.

Plus, knowing how to upload an HTML file to WordPress is just a good skill to take in case the need arises. Later all, you never know when you lot might come across an HTML template you dearest or need a sure type of folio layout that your theme doesn't support.


Relieve time, costs and maximize site performance with:

  • Instant assistance from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audition achieve with 29 data centers worldwide.
  • Optimization with our built-in Application Performance Monitoring.

All of that and much more, in one plan with no long-term contracts, assisted migrations, and a thirty-day-coin-back-guarantee. Bank check out our plans or talk to sales to detect the plan that's correct for you lot.