Support » Themes and Templates » Converting static-HTML template to a WP website

  • Hello,
    I got a task to convert a html template to a working wordpress website. I have a general idea how wordpress work and I am aware that i should cut the code in seperate modules. What I don’t understand is the whole layout and structure of this template. It clearly doesn’t have a blog in it, so where and how should I put new posts, pages and so on. I don’t know which areas of it to make editable and how? I uploaded the static html pages to

    [bump removed]

Viewing 1 replies (of 1 total)
  • The Theme Development page is the best place to start. The main content of a page or post is handled by the Loop. So, the most basic WordPress theme is:

    <?php get_header(); ?>
    <!-- This part is the Loop -->
     <?php if (have_posts()) : ?>
                   <?php while (have_posts()) : the_post(); ?>
                   <!-- do stuff ... -->
                   <?php endwhile; ?>
         <?php endif; ?>
    <!-- the Loop is over -->
    <?php get_footer(); ?>

    The Theme Development page explains how to customize the header and footer files, and other kinds of theme files you might want to use.

Viewing 1 replies (of 1 total)
  • The topic ‘Converting static-HTML template to a WP website’ is closed to new replies.