To start with (of the internet) all web pages have been made with not anything however textual content and static HTML. Now although, over two decades later, the internet is a far other position. Internet sites are a lot more advanced. They supply richer and extra stress-free reports for web page creators and guests alike.

That is largely because of open supply initiatives like WordPress. Which, during the last ten years or so, has succeeded in its core venture to democratize on-line publishing (and much more within the procedure) so that any one with a WordPress set up and the best theme/plugins will have a contemporary web site with complex design and capability. No coding–now not even HTML!–required.

Because of this to avid WordPress customers like myself, it’s virtually onerous to imagine that during 2018 any person may nonetheless be working a static HTML web site as a substitute of a WordPress web site with a theme and plugins. However the truth is there are nonetheless a vital quantity of lively HTML handiest websites in the market. (Or HTML with a little of CSS.)

Granted, those web page house owners can have just right causes for now not upgrading or changing. Possibly their web page content material by no means adjustments and the easy formatting and design already in position is serviceable? Or perhaps it’s much less of a trouble than being worried about retaining a WordPress web page up to date? Each are legitimate causes (amongst others). Top examples of, “Don’t repair what isn’t damaged.”

On the other hand, I’ve a sense that those may not be the main reason why some (in all probability many) haven’t made the bounce. The obvious one being that they only don’t know the way to convert their HTML web page right into a WordPress web page. Particularly with out dropping content material or desiring to do over the top formatting on a web page through web page foundation.

Fortunately, as is frequently the case with WordPress, there are a selection of the way to head about fixing this drawback. I’ve compiled some choices beneath.

Subscribe To Our Youtube Channel

Your Choices for Changing a Static HTML web page to a WordPress web page

How you select to transform your static HTML web page right into a WordPress web page will indisputably depend on your own choice, desired time/financial funding, and talent stage with code. You’ll have to be the only to come to a decision which is right for you, however with the summaries beneath you will have to be capable of come to a decision briefly and skip immediately to essentially the most related knowledge on this publish to your explicit state of affairs.

There are 3 major choices:

1. Manually create a WordPress theme in response to your present static HTML web page.

This will likely require you to get into your code. You’ll have to get admission to your present web page listing by way of FTP and use your current code as a kick off point. From there it is very important create the essential information for a WordPress theme and replica bits of code from the WordPress codex. That is rather easy and immediately ahead in case you have some revel in with HTML, CSS, and a little of PHP.

2. Set up a pre-made theme and easily migrate your content material.

That is more than likely the most suitable choice on the intersection of simplicity and price. Assuming you have already got web hosting to your present web site, you’ll handiest wish to spend cash if you select to buy a top class theme. The plugin we can use for uploading content material is freely to be had within the professional WordPress Plugin Repository.

3. Paying to have an HTML to WordPress conversion provider re-create your web page.

That is the perfect resolution, because it doesn’t require you to do a lot of anything else. On the other hand it is going to now not do a lot for familiarizing you with WordPress and the price will range relying on who you select to rent. I gained’t be masking this selection within the sections beneath as a result of if that is the course you have an interest in, you’ll be able to merely do a snappy seek for provider suppliers and they are going to deal with the remainder.

Making ready for HTML to WordPress Conversion

Regardless of which course making a decision to take beneath, there are some things it would be best to do prior to diving in.

The first is choosing a hosting plan. You’ll need to glance over the choices which might be in the market and come to a decision on a package deal that most closely fits your wishes. Or in all probability you’d love to create a local WordPress installation as a substitute? You’ll be able to all the time migrate it to a hosting service later.

When you’ve selected, it is very important set up WordPress and log into WP Admin. That is the purpose at which our two imaginable paths divide.

Manually Changing Your Static HTML Website to WordPress

In case your purpose is not to handiest get your content material out of your static HTML web page into WordPress but in addition reproduction your present design, this implies it is very important create your personal customized theme. Fortunately, that’s not as frightening as it would sound in the beginning. It handiest comes to developing a couple of folders and information, a little of replica and paste, after which importing the end result.

You’re going to want a code editor comparable to Chic or Notepad++ and get admission to to each your HTML web page’s listing and your new WordPress set up’s listing.

Step 1: Create a New Theme Folder and Essential Recordsdata

To your desktop, create a brand new folder to carry your theme information. Title it no matter you’d like your theme to be named.

Subsequent, create a couple of information (which all move for your new theme folder) for your code editor. Don’t do anything else to them simply but. Simply go away them open for additional enhancing.

  • Taste.css
  • Index.php
  • header.php
  • sidebar.php
  • footer.php

Step 2: Replica Present CSS Into New Stylesheet

In case you’re taking a look to replicate a design, this more than likely approach you will have no less than some CSS that you wish to have to avoid wasting. So the primary report you’re going to need to edit is your Taste.css report.

To start, upload the next to the highest of your report.

Theme Title: Substitute along with your Theme's title.
Theme URI: Your Theme's URI
Description: A temporary description.
Model: 1.0
Creator: You
Creator URI: Your web site cope with.

After this phase merely paste your current CSS beneath. Save and shut the report.

Step 3: Separate Your Present HTML

Earlier than we get into step 3, let me come up with a snappy word on how WordPress works. WordPress makes use of PHP to name and retrieve items of knowledge from its underlying database. Every report that we’re the usage of on this little instructional is designed to inform WordPress which a part of your web page content material is to be displayed and the place.

So once I say we’re going to “cut up” your current HTML, what we’re in reality doing is just slicing and pasting portions of your current code into the other information we’ve simply created, in order that WordPress will know the place to show them.

Right here we move.

First, open your present web page’s index.html report. Spotlight the whole thing from the highest of the report to the hole div magnificence=”major” tag. Replica and paste this phase into your header.php report, save and shut.

2d, return on your index.html report. Spotlight the apart magnificence=”sidebar” component and the whole thing inside of it. Replica and paste this phase into your sidebar.php report, save and shut.

3rd, for your index.html choose the whole thing after your sidebar and replica and paste it into your footer.php report, save and shut.

In the end, for your index.html report, choose the whole thing that’s left (this will have to be the principle content material phase) and paste it into your index.php report. Save, however don’t shut but.

You can shut your index.html report now then again and transfer directly to the general steps. Virtually executed!

Step 4: Finalize Your Index.php Report

With the intention to finalize your new theme’s index.php report you want to ensure it will possibly name up the opposite phase (but even so the principle content material) which might be housed within the different information you’ve created. Or in different phrases, put again in combination the weather we simply “chopped up”.

On the very best of your index.php report, position the next line of php.

Then, on the very backside of your index.php report, position those strains of php.

And after all, we need to upload what’s referred to as The Loop. That is the main little bit of php that WordPress makes use of to show your publish content material to guests. So the general step in developing your new theme’s index.php report is including the code beneath throughout the content material phase.


Save your index.php and shut. You’re theme is now completed! All that’s left is to add it on your WordPress web site.

Step 5: Add Your New Theme

Now that you just’ve created your theme information and feature all of them saved inside of your new theme folder, you’re going to wish to get admission to your new WordPress set up’s listing.

Position your new theme folder inside of /wp-content/issues/. Then navigate again to WP Admin > Look > Issues and your newly created theme will have to seem there. Cross forward and turn on it!

All that’s left to do at this level is populate your new WordPress web site along with your outdated web page’s content material. Apply together with the phase beneath (skipping over the phase about the usage of a pre-made theme) to peer how this is executed.

The usage of a Pre-Made WordPress Theme and Uploading HTML Content material

If the stairs above appear too extensive or time eating to then you definately relaxation confident, there’s differently. As an alternative of changing no matter design you occur to be operating with at the moment right into a WordPress theme, you’ll be able to benefit from any one of the vital hundreds of issues to be had within the broader WordPress market.

There are unfastened issues and there are top class issues. Earlier than deciding which is right for you, it’s possible you’ll need to learn up on which issues are designed to cater on your wishes and read through theme class right here at Sublime Issues and somewhere else.

When you’ve selected a theme you prefer (and feature its zipped report package deal downloaded) you’ll need to head again to WP Admin > Look > Issues > Upload New and set up/turn on your new WordPress theme.

As soon as that is executed, you’ll have a brand new WordPress web site and theme–however little else. While you preview your web page, it is going to be empty of content material and more than likely glance kind of uninteresting. That’s adequate, as a result of subsequent we’re going to import your outdated web page’s content material.

In WP Admin move to Plugins > Upload New and seek for a plugin referred to as HTML Import 2 through Stephanie Leary. As soon as this plugin is put in and activated, apply its to hand consumer information to import your whole listing of HTML pages. Whole with pictures!

After this you’ll have your whole outdated content material residing on WordPress and formatted through your new theme. Or, should you created your personal theme above, your web page will have to just about glance adore it did prior to–simply working on WordPress.

In Conclusion

In case you’ve used this publish as a information for migrating your web site onto WordPress then you definitely’ve simply joined one of the vital biggest open supply communities on this planet. Welcome! It’s a a laugh position with quite a lot of builders, designers, bloggers, DIYers, and extra–all construction, taking part in, and developing with WordPress and WordPress issues/plugins.

In case you’ve “stuck the WordPress computer virus” the professional web site is chock filled with helpful issues, plugins, and different assets. In case you’d love to additional tweak your theme information, discover the Codex for apparently unending guidelines, methods, and diversifications.

And naturally we are hoping you’ll stick round to speak within the feedback beneath and subscribe for extra weblog posts at some point.

Article Thumbnail by way of Max Griboedov /

.divi_cta{background-color: #8f43ee; coloration: #fff; font-size: 20px; font-weight: daring; padding: 20px; text-align: heart; show: block; text-decoration: none; border-radius: 4px;}.divi_cta:hover{text-decoration:none;background-color:#7d37d6;}.divi_cta_red{background-color:#db1c1c;}.divi_cta_red:hover{background-color:#c51a1a;}

The publish Converting HTML Sites to WordPress Sites seemed first on Elegant Themes Blog.

WordPress Web Design

[ continue ]