We Value Your Privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web. You can change your mind and change your consent choices at anytime by returning to this site.

Update Consent
Loading ...

How to Upload HTML Files to WordPress

Updated April 17, 2017

WordPress sites are a little more complicated than sites made with just HTML files, because the files that it runs from are PHP files. However, you may need to upload a full HTML file to your WordPress site -- for instance, to migrate pages from a different HTML site without loading them into the normal post database, or to verify to a third party that you are the owner of the site. In such cases, you can upload an HTML file to the WordPress Media Library.

Loading ...
  1. Log in to your WordPress admin area. Click "Media Library" from the menu on the left, then click "Add New."

  2. Click "Select Files" on the screen that appears. A window comes up, allowing you to browse your hard drive for the HTML file that you want to upload. Locate the file, click it once, then click "Open" in the bottom right corner. Wait for the file to upload, which for a normal HTML file should not take long. Note that WordPress will return an error if the HTML file you try to upload is blank. If all you need to do is upload an HTML file with a particular file name -- for example, to verify that you are the owner of the site -- type the following into the file before uploading:

  3. Copy and paste the URL of the file, located next to the "File URL" field. If you need to link to the page from your main site, this is the URL you should use. You can also fill out the "Title" and "Description" fields to make your uploaded file easier to find.

  4. Click "Save all changes" when finished.

  5. Tip

    If the upload screen in the Media Library does not display correctly, it may be because you do not have the latest version of Flash installed. If this is the case, download the latest version for the browser you are using from Adobe's website. If you cannot install Flash for some reason, use the "Browser Uploader," located at example.com/wp-admin/media-new.php?flash=0 -- replace "example.com" with the URL of your blog.

Loading ...

About the Author

Warren Davies has been writing since 2007, focusing on bespoke projects for online clients such as PsyT and The Institute of Coaching. This has been alongside work in research, web design and blogging. A Linux user and gamer, warren trains in martial arts as a hobby. He has a Bachelor of Science and Master of Science in psychology, and further qualifications in statistics and business studies.

Loading ...