HTML to WordPress Theme Tutorial: Step 2 – Creating Theme Template Files

HTML to WordPress Theme Tutorial: Step 2 – Creating Theme Template Files

Welcome back to this series showing you how to create your first WordPress theme from static HTML.

In the first part of this series, you took your static index.html file and converted it to a PHP file. You added some template tags and a loop. In this second part your file will start to look more like a proper theme – you’ll split it up into multiple files and start creating template files for different types of content.

Specifically, we’ll:

  • Split our index.php file into multiple files, creating a separate file for the header, sidebar and footer.
  • Create a file for the loop.
  • Create new template files for static pages, archive pages and single…

Read Full Article