Convert WordPress Theme into HTML Template (3 posts)

  1. kevin22
    Posted 6 years ago #

    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


  2. RockyMtnHi
    Posted 6 years ago #

    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]

  3. whajost
    Posted 6 years ago #

    Thanks That Answer my Question !



Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.