How to Add HTML Files to WordPress: Step by Step Guide
Back when the Internet was just emerging, all websites were built only of text and some basic static HTML.
Now, after 20 years, we have seen that the web is a different place. The websites nowadays are nothing but complex applications.
In addition, they are unique and offer a seamless experience for website visitors and developers. This, basically is because of the paradigm shift to open source Content Management System (CMS) like WordPress.
WordPress is a huge and leading name in the web industry empowering 39.1% of the web. Assuredly, it has several in-built features with which you can build pages and content without HTML. It is because of the reason that WordPress core has in-built content types.
Besides, the WordPress theme you use has its own pre-designed templates that could be used to create an outstanding website according to the website requirements. In addition, many WordPress landing page plugins can be used to make the customized page templates for the website visitors to land from email campaigns, search results, and social media as well.
Hence, considering all the viewpoints in mind, we are presenting to you the step by step guide on how to upload HTML files to WordPress.
Why Do You Need to Upload an HTML file to WordPress?
Some definite reasons are there that reveals why you need to upload an HTML file to WordPress. Check them out below:-
You Hold Your Favorites
Discuss your WordPress project needs with Expert developers Now!!
-
You Need a Custom Page Layout
When Uploading HTML to WordPress is Necessary?
Before delving directly to know how to upload the HTML file to WordPress, it is essential to know when uploading becomes essential:-
You Require the Custom Page Layout
-
You Hold an Existing HTML File
-
You Need Google Search Console Verification
Precautions Before Uploading HTML Files
As we have already indicated, uploading HTML files can result in some errors on the WordPress website, so we strongly recommend that you should take some precautionary measures:-
Have your Website Backup
-
Create a Staging Environment
Different Ways of Uploading HTML files to WordPress
Here, in this section, we will be showing three ways of converting HTML file to WordPress, check them out below:- Upload an HTML file from the WordPress dashboard
- Upload an HTML file with cPanel
- Upload an HTML file with FTP
Uploading HTML file from WordPress Dashboard
Step 1: Sign Up to the WordPress dashboard and access the Media -> Add New. Step 2: Choose the HTML file from your PC and upload it the similar way you upload any image or video. You might face an error like the image shown below while doing this: Also, if you are not able to upload the file from the media library, then, you can also try the below options:-
Uploading the HTML file with Gutenberg
-
Uploading HTML file with Classic Editor
Upload an HTML file with cPanel
If you do not want to adopt the option to upload via the dashboard, then, you can choose the manual method as well. Find out below how to use cPanel to upload the HTML file. Step 1: Sign up to the web host account and access cPanel. Step 2: Choose File Manager and then, select the folder, public_html. This folder has three more folders, known as, wp-includes, wp-content, wp-admin. Step 3 Build a folder by choosing the "+Folder" option from the top bar menu and then, name it anything of your choice. Step 4: Zip files can also get uploaded here. Note: Before zipping the file, you have to rename the index.html to index.php (you can also choose a different name as well). It is because of the reason that the WordPress website also holds the index.html file. If you upload the new one, then, it will overwrite the existing file and results in some errors on the website. After renaming the index file and zipping the folder, you can upload it to the folder you built. Step 5: Now, you can right-click on the folder and select the contents. If you want, then, you can also delete the zip file as well. This is how you can upload the HTML file to the website successfully.Build Your Own custom Wordpress website With us