Skip to main content

Posts

Showing posts from 2017

Creating a WordPress Theme From Static HTML: Creating Template Files

In this blog i will talk about how to convert your html theme into WordPress. In this tutorial you'll learn how to take your index.html file and split it up into a set of template files for use by WordPress. What You'll Need For this tutorial all you'll need is the most basic tool for editing HTML and PHP: A code editor of your choice. What Are Template Files? A WordPress theme consists of a number of template files. At the very least, a theme must contain two files for it to work, these are index.php and style.css . However, in a well written theme, the contents of the index.php file will be split up into the main template file ( index.php ) and a set of include files. These are the files containing the code for the header, sidebar and footer. In some themes, an additional include file is used for The Loop; I'll come to that in Part 4 of this series. The files are called include files because you add code to your index.php file to tell WordPress to in...