Support » Everything else WordPress » Convert WordPress Theme into HTML Template

  • The question is generally asked the other way around – how to convert a template into a wp theme but I’d like to know how to convert a WordPress Theme I’ve spotted into a html template.

    I want to set up a pretty static site, there will be about 20-24 pages on the site and that will be that. It will rarely updated and I’ve no reason to expect comments.

    My major concern will be to remove the comment section and the date posted section I want the visitor to see it as a standard website.

    Any suggestions welcomed


Viewing 2 replies - 1 through 2 (of 2 total)
  • The first note is that you still want to use .php files instead of .htm or .html. This is because it allows you to use active code (database, email, etc.) or includes (see below).

    Browse to your pages then click the menu items View > Source to get the code. That is almost what you are looking for. Next, separate out the common code sections (header, footer, menus, etc.) and include them in each content file using code like this:
    <?php include('header.php'); ?>
    You do this to make sure that when one of these code sections changes you only need to do it in one place. Otherwise, simple site changes will force you to make the change on every page – bad deal.

    Once you have done this you can plug content into each individual page.

    If you want to be found in the search engines then you need to consider search engine optimization (SEO) concepts. Now is the time to do that.

    Hope it helps…

    [sig moderated]

    Thanks That Answer my Question !



Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Convert WordPress Theme into HTML Template’ is closed to new replies.