WordPress.org

Ready to get started?Download WordPress

Forums

Converting static-HTML template to a WP website (2 posts)

  1. gbnikolov
    Member
    Posted 1 year ago #

    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 http://gnikoloff.com/ddd
    Cheers!

    [bump removed]

  2. marcelle42
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic