By default, you can build pages and create content inside WordPress without ever having to upload any custom HTML files. That's because the WordPress core comes with born content types. In improver, the WordPress theme you lot use will likely take its ain set of pre-designed page templates that yous can take advantage of to create a unique website that meets your needs.

Beyond that, in that location are enough of WordPress landing folio plugins you tin utilise to create customized page templates for site visitors to country from search results, email campaigns, and even social media.

And then really, at that place is very lilliputian need to upload HTML files to WordPress considering, normally, everything y'all demand to format your website is already at that place. That said, in that location are some reasons why you'd desire to know how to upload an HTML file to WordPress, some of which go beyond uploading a template for design purposes.

That's why in this post, I'll show you how to upload HTML files to WordPress. I'll too discuss in detail why you'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 first developed by Tim Berners-Lee in 1990. In curt, HTML is the code used to create electronic documents on the internet, which are better known as webpages. In fact, every webpage you see on the cyberspace was written using HTML lawmaking.

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 manner.

Without HTML, web browsers would non understand the way to visually display the structure of your website for users. However, with the right HTML lawmaking creating the foundation for your webpages, and a little CSS code for adding in some blueprint 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 construction of unmarried 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-fabricated bundle of HTML code that you tin easily upload to your website and use.

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

Information technology'southward important to remember that HTML templates are unlike than WordPress themes:

  • WordPress Themes: even though you lot 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, significant they utilize to your entire website.
  • HTML Templates: these are standalone zippo files that y'all upload to your website individually. They only bear upon the await and experience of a single webpage on your website. In other words, changes you make to one uploaded HTML template will simply touch on 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 lot Would Need to Upload an HTML File to WordPress

There are a few specific reasons why you lot might want to upload an HTML file to WordPress:

    1. You Take Your Favorites: if you were using a nifty HTML template on an old website and wanted to use it on your new site, you might want to upload the template to your new site rather than re-exercise the entire thing. This volition save you time and ensure it looks exactly the same.
    2. Yous Want a Custom Page Layout: if your current WordPress theme doesn't back up a specific page layout, y'all tin upload an HTML file with the pattern you want and customize it as needed.

Lastly, you lot might demand 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 way your website appears in search engines, especially a big one like Google, plays a part in your success as a website possessor.

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

Google Search Console likewise provides you information about your current SERPs (search engine outcome pages), so you tin amend your SEO efforts and earn more clickthroughs to your site.

The thing is, to use Google Search Panel, yous need to verify your WordPress website. And it just then happens that one of the best ways to do this is to upload a Google HTML verification file.

Now, permit's accept a await at the unlike means to upload an HTML file to WordPress.

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

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

Yous'll demand nothing more than the backend of your website and an HTML template to complete this process since y'all'll exist uploading the HTML file directly through a mail, page, or the Media Library.

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

Upload HTML file in Gutenberg
Upload HTML file in Gutenberg

Hither'southward what it looks similar if you'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 you lot want to upload and then click Insert into post. Doing this inserts the link of the file into the mail or page and automatically saves information technology to your Media Library.

Upload HTML file in Classic Editor
Upload HTML file in Classic Editor

You can skip uploading the HTML file to a mail service or folio in WordPress and upload it directly to your Media Library. Click Media Library in the WordPress dashboard, then Add New, and choose the HTML file from the place you take it saved (e.one thousand., your estimator, hard drive, or external storage).

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

File type not permitted
File blazon non permitted

Bank check here for detailed instructions on how to fix the "Sad, This File Type Is Not 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 most straightforward method. However, for large templates made upwards of multiple files, it's all-time to utilise an FTP customer such every bit FileZilla.

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

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

Side by side, open your FTP client.

Now you'll demand to connect to your spider web host account by inbound your FTP credentials. This information is usually found in your spider web hosting account. If you have trouble finding information technology, achieve out to your host and have them help y'all.

Subscribe Now

If you use Kinsta hosting, kickoff log into your MyKinsta business relationship and click on Sites in the dashboard and and so on Info to get the credentials needed.

sftp details
Go your SFPT details in MYKinsta

When you do this, you should see your credentials nether SFTP/SSH. You'll need your username, countersign, and port.

sftp details username password port
SFTP details

Hither'due south the information you lot're going to need to enter into FileZilla:

  • Host: your site'due south domain name preceded by "sftp://". For instance, 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 meridian of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

Afterwards you've entered your credentials, click Quickconnect.

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

And so, go to the left side and discover the HTML file you lot have saved. When you lot discover it, right-click it and select Upload to add information technology to your website. To see all hidden files in Filezilla follow this short tutorial.

HTML file uploaded
HTML file uploaded

You lot'll see the file has successfully been uploaded to WordPress. To check to make sure it is visible on your website, type your website's URL into your browser and add the name of the HTML file to the terminate. For instance, it might wait similar world wide web.mywebsite.com/html-file.

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

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

FileManager in cPanel
FileManager in cPanel

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

    1. Create a New Folder: create a new binder in your site'southward root binder to upload your HTML file to.
    2. Upload to Root Folder Directly: rather than create a new folder, upload the HTML direct to WordPress. If this is how y'all desire to do information technology, unzip the HTML file where you lot have it saved, change the index.html folder to something new, so rezip the file to go along uploading to WordPress. If you don't, the HTML template volition override your site's homepage.

For this instance, we'll create a new folder since at that place are a few added steps when y'all 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.). 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 folder you just created then click Upload to select your HTML file.

Upload button
Upload button

One time this is done, yous'll run into your zipped HTML file in the binder.

Zipped HTML file
Zipped HTML file

Now you need to unzip the HTML file past right-clicking and selecting Excerpt.

Extract HTML file
Extract HTML file

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

Extracted HTML files
Extracted HTML files

Now all you take to practice to brand sure the HTML template and files were uploaded is blazon your site's URL into the browser and add the new binder's proper noun to the finish.

If you encounter a 404 error, don't worry. This is a common WordPress error and tin 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 within the File Managing director and access your .htaccess file past double-clicking it. Then, add the post-obit code and relieve your changes:

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

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

Summary

WordPress is the most used Content Management system around because information technology gives website owners the flexibility needed to create unique websites that stand out from the competition. Beingness able to upload an HTML file to WordPress using whatsoever of the to a higher place-mentioned methods is only 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 example the need arises. Later on all, you never know when y'all might come across an HTML template you love or demand a certain type of folio layout that your theme doesn't back up.


Save time, costs and maximize site operation with:

  • Instant help from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience reach with 29 data centers worldwide.
  • Optimization with our built-in Awarding Operation Monitoring.

All of that and much more, in ane programme with no long-term contracts, assisted migrations, and a 30-twenty-four hour period-coin-back-guarantee. Check out our plans or talk to sales to find the program that's correct for y'all.