By default, you can build pages and create content within WordPress without ever having to upload any custom HTML files. That's considering the WordPress core comes with built-in content types. In add-on, the WordPress theme y'all use will likely accept its own set of pre-designed folio templates that you tin take reward of to create a unique website that meets your needs.

Across that, there are enough of WordPress landing folio plugins yous can utilise to create customized page templates for site visitors to land from search results, electronic mail campaigns, and even social media.

So really, at that place is very fiddling need to upload HTML files to WordPress because, unremarkably, everything you need to format your website is already there. That said, there are some reasons why y'all'd want to know how to upload an HTML file to WordPress, some of which become beyond uploading a template for design purposes.

That's why in this mail service, I'll bear witness you how to upload HTML files to WordPress. I'll likewise discuss in particular why you lot'll want to accept this skill, so no matter what, you're prepared.

What is an HTML File?

HTML stands for Hypertext Markup Language and was starting time developed by Tim Berners-Lee in 1990. In brusque, HTML is the code used to create electronic documents on the internet, which are better known equally webpages. In fact, every webpage you see on the cyberspace was written using HTML code.

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

Without HTML, web browsers would not understand the fashion to visually display the structure of your website for users. However, with the right HTML lawmaking creating the foundation for your webpages, and a footling CSS code for adding in some design elements, your website appears perfectly for site visitors.

What is an HTML Template?

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

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 hands upload to your website and utilise.

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

It'due south important to remember that HTML templates are dissimilar than WordPress themes:

  • WordPress Themes: even though you plug in text and images into WordPress themes, they are responsible for the await and experience of your entire website. Many element changes within your site'southward theme are global, meaning they use to your entire website.
  • HTML Templates: these are standalone nothing files that you upload to your website individually. They simply affect the await and feel of a single webpage on your website. In other words, changes you brand to one uploaded HTML template volition only bear upon that webpage.

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

Why You Would Demand 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. Y'all Take Your Favorites: if yous were using a keen HTML template on an sometime 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 entire thing. This will save you fourth dimension and ensure it looks exactly the same.
    2. Y'all Desire 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 you want and customize information technology every bit needed.

Lastly, yous might demand to verify your WordPress website with Google Search Console and desire to use the recommended method of uploading a Google HTML verification file to practice and so.

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

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

Google Search Console as well provides yous information about your electric current SERPs (search engine issue pages), so you lot tin improve your SEO efforts and earn more than clickthroughs to your site.

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

At present, let'southward accept a look at the unlike ways to upload an HTML file to WordPress.

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

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

Y'all'll need cipher more than the backend of your website and an HTML template to complete this process since you'll exist uploading the HTML file straight through a postal service, page, or the Media Library.

To upload an HTML file through a post or page, insert a 'File' cake in the Gutenberg Editor. And 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 you've disabled Gutenberg and are using the Archetype Editor. But click Add Media and and so Upload to upload your HTML file.

Choose the HTML file you want to upload and so click Insert into post. Doing this inserts the link of the file into the mail service or page and automatically saves information technology to your Media Library.

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

You can skip uploading the HTML file to a post or folio in WordPress and upload it direct to your Media Library. Click Media Library in the WordPress dashboard, then Add New, and choose the HTML file from the place you have it saved (e.g., your figurer, hard drive, or external storage).

Go along 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 type not permitted

Cheque here for detailed instructions on how to set 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 most straightforward method. Nonetheless, for big templates made up of multiple files, it'south best to use an FTP client such as FileZilla.

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

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

Next, open your FTP client.

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

Subscribe At present

If yous use Kinsta hosting, commencement log into your MyKinsta account and click on Sites in the dashboard and then on Info to go the credentials needed.

sftp details
Get your SFPT details in MYKinsta

When you lot practice this, you should run into your credentials nether SFTP/SSH. Yous'll need your username, password, and port.

sftp details username password port
SFTP details

Here's the data y'all're going to need to enter into FileZilla:

  • Host: your site'southward domain proper name preceded by "sftp://". For example, you'll need 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 look like at the elevation of the FileZilla screen:

Logging into FileZilla
Logging into FileZilla

Subsequently you've entered your credentials, click Quickconnect.

Now information technology's fourth dimension to upload the HTML file from your computer to WordPress. Offset by navigating to your website'south 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 discover the HTML file y'all accept saved. When you lot notice it, right-click it and select Upload to add it to your website. To come across all hidden files in Filezilla follow this brusk tutorial.

HTML file uploaded
HTML file uploaded

You'll see the file has successfully been uploaded to WordPress. To bank check to make sure information technology is visible on your website, type your website's URL into your browser and add the proper noun of the HTML file to the stop. For instance, information technology might look like www.mywebsite.com/html-file.

When you practise this, you lot'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 last 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's cPanel and accessing the File Manager.

FileManager in cPanel
FileManager in cPanel

Once you're in the File Director, you have ii options:

    1. Create a New Binder: create a new folder in your site's root folder to upload your HTML file to.
    2. Upload to Root Folder Straight: rather than create a new folder, upload the HTML directly to WordPress. If this is how you want to do it, unzip the HTML file where yous have it saved, change the alphabetize.html folder to something new, and and then rezip the file to continue uploading to WordPress. If you don't, the HTML template will override your site'southward homepage.

For this instance, we'll create a new folder since there are a few added steps when you lot do this.

Create a New Binder and Upload an HTML File to WordPress

First, navigate to the root binder 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 yous just created so click Upload to select your HTML file.

Upload button
Upload button

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

Zipped HTML file
Zipped HTML file

Now you need to unzip the HTML file by right-clicking and selecting Extract.

Extract HTML file
Extract HTML file

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

Extracted HTML files
Extracted HTML files

Now all you take to do to make sure 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 run into a 404 error, don't worry. This is a common WordPress error and tin be resolved easily.

If your server doesn't support redirection, and the index.php file is not redirected on loading the URL in your browser, you'll run into a 404 fault afterwards uploading your HTML files.

To fix this, stay within the File Manager and admission your .htaccess file by double-clicking information technology. Then, add the following code and save your changes:

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

This code will redirect your index.php file and load information technology in the browser.

Need to upload any HTML file to your WordPress site? This in-depth guide shows yous how to do it easily. ⬆đź“‚ Click to Tweet

Summary

WordPress is the most used Content Management system 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 whatever of the higher up-mentioned methods is just another instance 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. After all, you never know when you lot might come beyond an HTML template you love or need a certain type of page layout that your theme doesn't support.


Save time, costs and maximize site performance with:

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

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