• I am trying to make my first custom theme and I am going through all of the documentation. I have read through the ‘integrating WordPress into an exsisting site’, I’ve read The Loop info but I still don’t get it. The loop peice seems to cover up to version 1.5 but I am using v 2.0.4. Anyone have any other information about making a new template and specifically about ‘The Loop’ that they think I might find helpful?

    I really want to use word press on my site but I don’t want to use it but I only want to use it if I can make it look like the rest of my site.

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello

    Basically you just need to copy the layout markup for your site and paste it into the wordpress theme files around the wp code that makes the blog work.

    The theme system is pretty simple once you figure out where everything goes.

    In the themes folder there are folders for each theme that you have uploaded to your server. In each of these folders are the files that make up the WP theme.

    You have:

    • header.php – header for all pages
    • index.php – blogs mainpage
    • sidebar.php – sidebar for all pages
    • footer.php – footer for all pages

    There are a few more but these are the main files that make up the site or the blogs mainpage anyway.

    header, sidebar and footer.php are used for all pages throughout the site, index.php is for the blogs mainpage.

    Then you have:

    • archive.php – which is used for archive pages
    • page.php – is for WP “pages”
    • single.php – is for individual post pages

    These are used in place of index.php depending on where in the site you are.

    If you are viewing a an archive page then archive.php is used If you are viewing a WP “page” then page.php is used and the smae for single.php, if you are viewing a single post then it replaces index.php.

    All of these files are basically the same, they call in header.php at the top the they contain the main content for the site, which is generated by the “Loop” then at the bottom of that they call in sidebar.php and footer.php.

    There are also a few more files

    Such as:

    Hope it helps. feel free to ask again if this was not the answer you needed. ??

    Thread Starter mynameischristian

    (@mynameischristian)

    That is exactly what I needed. Thank you so much. If I have any further questions I know where to go.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating a theme’ is closed to new replies.