website-logo-dark website-logo-light
  • Services
    menu-item-icon
    SEO Services
    Become unmissable in search results.
    menu-item-icon
    Local SEO Services
    Start dominating your local market.
    menu-item-icon
    Ecommerce SEO Services
    Sell more products with SEO.
    menu-item-icon
    Website Design Services
    Make your website a memorable experience.
    menu-item-icon
    Link Building Services
    Build authority with high-quality backlinks.
    menu-item-icon
    Franchise SEO Services
    Grow and protect your franchise brand .
    menu-item-icon
    PPC Management Services
    Reach consumers when they’re ready to buy.
    menu-item-icon
    Facebook Ads
    Target your ideal audience on Facebook.
    menu-item-icon
    Google Ads
    Dominate with targeted search and display.
    • menu-item-icon
      SEO Services
      Become unmissable in search results.
    • menu-item-icon
      Local SEO Services
      Start dominating your local market.
    • menu-item-icon
      Ecommerce SEO Services
      Sell more products with SEO.
    • menu-item-icon
      Website Design Services
      Make your website a memorable experience.
    • menu-item-icon
      Link Building Services
      Build authority with high-quality backlinks.
    • menu-item-icon
      Franchise SEO Services
      Grow and protect your franchise brand .
    • menu-item-icon
      PPC Management Services
      Reach consumers when they’re ready to buy.
    • menu-item-icon
      Facebook Ads
      Target your ideal audience on Facebook.
    • menu-item-icon
      Google Ads
      Dominate with targeted search and display.
  • About
    menu-item-icon
    About Us
    Learn what HigherVisibility is all about.
    menu-item-icon
    Management Team
    Leadership helping to drive our clients success.
    menu-item-icon
    Contact Us
    Need to get in touch with us?
    Client Reviews banner
    Client Reviews
    See what our clients are saying!
    • menu-item-icon
      About Us
      Learn what HigherVisibility is all about.
    • menu-item-icon
      Management Team
      Leadership helping to drive our clients success.
    • menu-item-icon
      Contact Us
      Need to get in touch with us?
  • Learn
    menu-item-icon
    Blog
    Learn tips, industry news, and research insights.
    menu-item-icon
    Free SEO Tools
    Access our public facing tools for better SEO.
    menu-item-icon
    SERP Snippet Optimizer
    See how your webpage looks in Google SERPs.
    menu-item-icon
    SEO CTR Grader
    Write Title Tags that increase your CTR.
    menu-item-icon
    Bulk Keyword Generator
    Automatically generate localized keywords.
    menu-item-icon
    Keyworddit
    The only Reddit keyword research tool.
    What is SEO Banner
    What is SEO?
    The Beginner's Guide to Search Engine Optimization
    • menu-item-icon
      Blog
      Learn tips, industry news, and research insights.
    • menu-item-icon
      Free SEO Tools
      Access our public facing tools for better SEO.
    • menu-item-icon
      SERP Snippet Optimizer
      See how your webpage looks in Google SERPs.
    • menu-item-icon
      SEO CTR Grader
      Write Title Tags that increase your CTR.
    • menu-item-icon
      Bulk Keyword Generator
      Automatically generate localized keywords.
    • menu-item-icon
      Keyworddit
      The only Reddit keyword research tool.
  • Who We Help
    menu-item-icon
    Franchise Brands
    We produce results for your brands!
    menu-item-icon
    Lawyers
    Get more clients for your law practice!
    menu-item-icon
    Ecommerce Businesses
    We can grow your Ecommerce sales!
    menu-item-icon
    Automotive Companies
    We drive new customers and revenue!
    menu-item-icon
    Financial Services
    Banking, Personal Finance, or Fin Tech!
    menu-item-icon
    Home Builders
    Sell more homes with our digital solutions!
    Other Business Industries Banner
    Other Businesses
    A sustainable future for your website.
    • menu-item-icon
      Franchise Brands
      We produce results for your brands!
    • menu-item-icon
      Lawyers
      Get more clients for your law practice!
    • menu-item-icon
      Ecommerce Businesses
      We can grow your Ecommerce sales!
    • menu-item-icon
      Automotive Companies
      We drive new customers and revenue!
    • menu-item-icon
      Financial Services
      Banking, Personal Finance, or Fin Tech!
    • menu-item-icon
      Home Builders
      Sell more homes with our digital solutions!
phone-icon
424.514.4202
Login
  • Home
  • Website Design
  • Insite Blog

Converting HTML to WordPress: Step by Step Tutorial

Adam Heitzman
Adam Heitzman
August 24, 2022
swatch

Creating a website is no longer that difficult, but that wasn’t always the case.

In days gone by, if you weren’t a coding master you couldn’t even begin to think about creating a website for your business.

Thankfully, we live in the software age.

Thanks to the invention of website templates, software apps and automatic content management systems, website design has become a lot easier. There are dozens of tools that can do most of the heavy lifting when it comes to the design and coding of your website.

The main one, of course, being WordPress.

But what if you had your site designed years ago?

You’d still have to update the site via HTML coding. And that can be time-consuming at best and ridiculously expensive at worst.

So does that mean you’ll have to scrap your whole website and start from scratch?

Not at all.

It’s possible to convert your old HTML site code into a WordPress website.

Static HTML sites still exist, and they still have a place on the modern Web. But if you’re not a coding expert and you want to take charge of your site personally, it might be a good idea to move from static HTML to WordPress.

What’s more, this doesn’t have to be an overly complicated process. Methods vary from advanced coding to plugins.

We’ll explore those methods in this article.

So, how can you convert your static HTML website into WordPress? Read on to find out.

WHY WOULD YOU CONVERT HTML INTO A WORDPRESS THEME?

If you already have a static HTML site, why would you want to convert that into a WordPress theme, to begin with?

Well, for starters, it’s far easier to manage.

If you’re not someone fluent in website coding, you’ll need developers to make any changes to your site.

Also, if you want to stay on top of SEO to be found in popular search engines, you’re going to need to update your site consistently.

That’s where WordPress comes into play.

WordPress is a content management system (CMS) designed so that anyone can use it, regardless of skill level. You won’t need to hire a developer for WordPress development, and changes are super simple. 

image 18

You can often make changes with just a few clicks of your mouse (even over mobile).

But what does it mean when we say that you should convert your existing website into WordPress?

Converting your website into WordPress means taking your existing data from your current, static HTML site and transferring it into a WordPress theme.

There are three main ways to do this, which we will explain below.

1. MANUAL CONVERSION OF HTML TO WORDPRESS

Because it is the most technical option on our list, manual conversion is not recommended for everyone.

Manual conversion uses your current site’s HTML code as a starting point. If you’re going to attempt this conversion method, it is recommended that you have some coding experience. Specifically, you should know HTML and CSS, as well as PHP.

Luckily, most of this process involves copy and paste, but it’s still complicated.

Here is a step-by-step guide to manual HTML/WordPress conversion:

Step 1: Create a New Theme Folder

The first thing that you’ll need to do is create a new theme folder on your desktop. Think of it as a directory folder on your computer. It serves the same purpose.

Now, go to the code editor and create text files. There are five different files you’ll want to create:

  1. Style.css
  2. Index.php
  3. Header.php
  4. Sidebar.php
  5. Footer.php

Step 2: Copy CSS Code

Next, you’ll have to copy the CSS coding from your old website onto a WordPress Style Sheet.

To do that, you’ll have to prepare the WordPress style sheet, which is the style.css file you created in the last step.

Copy and paste the CSS code from the old site’s source into that style sheet.

Then it’s time to fill out the various parts of the style sheet header for your new WordPress theme.

They are:

  • Theme Name – This can be anything you want.
  • Theme URL – The homepage information or site address.
  • Author – Your name.
  • Author URL – Link to the homepage you’re building.
  • Description – This part is an optional write-up on the theme that shows within the WordPress backend.
  • Version – Start with 1.0.
  • License, License URL, Tags – This part is only necessary if you’re going to submit the theme into the WordPress directory for others to use. If you’re keeping it for yourself, then don’t worry about it.

Here’s what that style sheet might look like:

image 19

Once you’re done with the header, paste the CSS code from the static HTML site into your file. Save the file in your theme folder and close it.

Step 3: Separate Existing HTML

WordPress uses PHP to access database information. As a result, your existing HTML code has to be chopped into separate pieces so that the WordPress CMS can properly string them together.

To do this, you’ll have to copy parts of the original HTML document into several different PHP files.

First, open your index.html file.

Go through the WordPress files that were created and copy that code into the following areas:

  1. Header.php – This entails everything from the beginning of your HTML code up to the main content area. Right before the section marked </head> you’ll have to copy and paste <?php wp_head();?>
  2. Sidebar.php – This is where you put all the code from the section marked <aside>
  3. Footer.php – This section starts at the end of the sidebar and goes up to the end of the file. Add a call for <?php wp_footer();?> before closing off the bracket with </body>.

Once you’ve done that, close the index.html file and save your other data to the theme folder.

Close all of the files except for header.php and index.php.

Step 4: Change the Header.php and Index.php Files for WordPress

Next, you’ll be changing the header.php and index.php to fit into WordPress’s format.

To do this, look for a link in the <head> section that looks like this:

<link rel=”stylesheet” href=”style.css”>.

Replace that link with this:

<link rel=”stylesheet” href=”<?php echo get_template_directory_uri(); ?>/style.css” type=”text/css” media=”all” />.

Now, save and close the header.php file. You’re done with it for the moment.

Open your index.php file. It should be empty.

Enter the following, precisely like this:

<?php get_header(); ?>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

The space between the first and second lines of code is essential. This is where you will paste your Loop code. It’s a form of PHP used by WordPress for displaying posts:

image 20

After that, save and close the file. The basic theme should be ready and can now be added to a WordPress site.

Step 5: Screenshot and Upload

The last thing you’ll need to do is create a screenshot of your theme and upload it.

The screenshot will show a preview of your site in the WordPress backend.

Take this screenshot and crop it to 880×660 pixels. Save the file as a screenshot.png.

Now, add the screenshot to your theme folder.

It’s time to upload the theme to WordPress. Take the following five steps:

  1. Create a zip file.
  2. Go to WordPress.
  3. Select Appearance, Themes, and click Add New at the top.
  4. Click Upload Theme.
  5. Upload your zip file and click Install Now.

Once that’s done, you can activate the theme!

2. CONVERTING HTML THROUGH A WORDPRESS CHILD THEME

Using a WordPress child theme to turn your original HTML into a CMS format gives you a lot more freedom and doesn’t require nearly the amount of technical know-how as the previous method.

It’s also the easiest and cheapest option for converting HTML to WordPress.

To do this, you’re going to use a ready-made theme as a jumping-on point instead of modeling it off your existing site.

It is possible to adjust the design of your WordPress parent theme so that it resembles the old site as much as possible.

That means you’ll be able to use WordPress while retaining the look and feel of the original site. There is no need to add WordPress features after because you’re building the new website on an existing theme.

Child themes are built on top of another theme, which is called the parent. The child theme modifies the parent theme in a way that fits your specific site.

Here is a step-by-step guide to converting your static HTML site into WordPress using a child theme.

Step 1: Choose a Theme

Before you can get started, you need to pick a theme. Try to find one that you like, but also resembles your existing design. 

image 21

Install the theme on your WordPress site like you would any other theme. Just don’t activate it yet.

Step 2: Create a New Theme Folder

You’re going to create a new folder on your desktop, much like you did in the previous method.

Name the folder the same as the parent theme and add “-child” to the end of it. Remember, there should be no spaces in the name.

Step 3: Create a Style Sheet

This step is identical to the style sheet creation we went through in the previous method.

However, this time, you’re going to add a tag titled “template.” Make sure that you include the name of your parent theme. That is needed for the child theme to work.

Step 4: Create a Functions.php

Next, you’ll create a functions.php and inherit the parent styles for the child theme.

To do this, create a new file and call it functions.php. Make sure you start it off with <?php.

Now, input the following code:

function child_theme_enqueue_styles() {

$parent_style = ‘parent-style’;

wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );

wp_enqueue_style( ‘child-style’,

get_stylesheet_directory_uri() . ‘/style.css’,

array( $parent_style ),

wp_get_theme()->get(‘Version’)

);

}

add_action( ‘wp_enqueue_scripts’, ‘child_theme_enqueue_styles’ );

This code lets WordPress know to go to the parent theme and use the styles that are listed there for the child theme.

Step 5: Activate the Child Theme

You can now activate the child theme.

Before that, though, make sure that you take a screenshot to be featured on the WordPress backend.

Create a zip file with everything and add it all into WordPress, as we did in the previous method.

You’ll then be able to change the design to match your original HTML.

3. IMPORT YOUR CONTENT FROM HTML INTO WORDPRESS USING A PLUGIN

This tactic is only recommended if you’re open to changing your site’s design. If you want an all-new look, using WordPress plugins can be a much easier road to travel.

Here is a step-by-step guide on how you can import your content from HTML into WordPress using plugins.

Step 1: Set Up a New Site

Start up your new site and install the WordPress theme of your choice. Make sure it’s a template that you like and is easily edited. You will need to change the appearance to match your branding.

Step 2: Install the Plugin

Now, it’s time to install the plugin that makes this possible. You’re going to search for a WordPress Plugin called HTML Import 2 and install it on your site. 

AD 4nXcOuLflpp1 pyUIIBpGOsTWhu6IO 71omXBw36OYcrrCJAi1aPcLaPrBu6H2HCQvThRSfEL3WnDTvRqJr8WhJ2P5EIOkSY CAuPunSMTpe96Ol0cvfQTKfXaMwi

Click on Install Now and then activate it.

Step 3: Upload Pages

Once the plugin is up and running, upload your pages to the same server as your WordPress installation.

Under the Files tab, you’ll enter the following information:

  • Directory to Import – This is the pathway you copied your existing HTML code to
  • Old site URL – The old URL is mostly there for redirect purposes. Enter the old URL of the site.
  • Default File – Enter your index.html.
  • File extensions to include – Put in the extensions of the files that will be imported.
  • Directories to exclude – Exclude anything from the old site that you don’t want to be carried over.
  • Preserve file names – The plugin will automatically use your file names as the new URL.

Once that’s done, go under the content tab and configure the HTML tag that holds your site’s content.

There are several tabs that you’ll have to familiarize yourself with:

  • Under the Title and Metadata tab, you’ll let the plugin know how your titles are marked in the HTML template.
  • The Custom Fields tab is where you put data that needs to be imported into custom fields.
  • On the Categories and Tags tab, you’ll assign categories to your imported content.
  • The tools screen is where you can go over some of the built-in tools found in the extension.

Once you’ve gone through every tab, save your settings, and click Import Files.

IN CONCLUSION

If you have a static HTML site, it’s a good idea to switch over to a more effective content management system with proven functionality, like the WordPress platform.

Thanks to WordPress templates and the easy-to-use WordPress Dashboard, HTML to WordPress conversion will make your website easier to manage and a whole lot cheaper to maintain.

Table of Contents
  • WHY WOULD YOU CONVERT HTML INTO A WORDPRESS THEME?
  • 1. MANUAL CONVERSION OF HTML TO WORDPRESS
  • 2. CONVERTING HTML THROUGH A WORDPRESS CHILD THEME
  • 3. IMPORT YOUR CONTENT FROM HTML INTO WORDPRESS USING A PLUGIN
  • IN CONCLUSION
chart-bar
What is Your Website's
SEO Grade?

How does your website measure up in SEO? Find out with our easy-to-use, free grading tool. Get a clear SEO grade for your website in just 60 seconds.

Scan Your Website For Free!

From Our Insite Blog

We believe that SEO requires an all-encompassing approach to ensure a sustainable future for your site and achieve your goal…. conversions.

magnify
SEO
David McElveen
Why is Organic Traffic Decreasing? Reasons & How to Fix
map
Paid Search
Scott Langdon
Google Ads Cost: A Business Owners Guide for Budgeting Success
api
Local
Adam Heitzman
What is Google 3 Pack and How to Get Listed: A Complete Guide
magnify
SEO
Adam Heitzman
Hotel Web Design: 6 Examples That Inspire Guests to Book
swatch
Web Development
Adam Heitzman
How Much Do Website Maintenance Services Cost? The Complete 2024 Guide
cart
Ecommerce, Web Development
Adam Heitzman
10 Quick Tips for Making Your E-Commerce Site More Interactive
avatar

After working with HigherVisibility for just a few months, we started getting more traffic and selling more memberships. Great people that treat you right and get results.

Bob Rogers, Co-Owner
Get My Free Quote

Request a FREE Proposal

Enter your email to get strategic insights, a plan of action, and pricing options.
Login
check-yellow
Talking with other Digital Marketing Agencies? Contact us to learn what makes us the best!
facebook twitter LinkedIn youtube
website-logo-dark
HigherVisibility’s focus is to drive conversions through laser-focused targeting combined with an optimal post-click experience.
Request a Proposal
Services
  • SEO Services
  • PPC Management
  • Website Design
  • Local SEO
  • Link Building
  • Ecommerce SEO
Services
  • Franchise SEO
  • Facebook Ads
  • Google Ads
  • SEO Auditing
  • Conversion Optimization
  • Reseller Program
  • Website Maintenance
Company
  • About Us
  • Careers
  • Blog
  • Free SEO Tools
  • Memphis Location
  • Atlanta Office
  • Chicago Office
  • Miami Office
  • Privacy Policy
  • Sitemap
  • Contact Us
Compare
  • Best WordPress SEO Agencies
  • Best SEO Companies for Multi-Unit Businesses
  • Best Web Design Companies for Small Businesses
  • Best Digital Marketing Agencies for Franchises
  • Best WordPress Design Agencies
  • Best Local SEO Companies
  • Best SEO Companies for Home Services
  • Best SEO Companies for Roofers
Telephone icon
Call Us Toll Free : 424.514.4202
Message icon to email
Email Us : [email protected]
Pin icon for local address
6070 Poplar Avenue, Suite 760, Memphis, TN 38119
© 2025 HigherVisibility® · A leading digital marketing agency.

phone-icon Prefer to call?

424.514.4202

Feel confident in the process and proud of the results. See why 1000’s of businesses have trusted HigherVisibility since 2009. Our digital consultants are ready to discuss your needs.

Google logo
G2 logo

You’re Custom Strategy is
One Step Away

Complete the form and get strategic insights, our plan of action, and pricing options.