Create your own WordPress theme from scratch [Part 5]

Well, we have coded index.php, header.php, content.php, sidebar.php, and now the one that is left is footer.php . I don’t know what all to add to footer.php except this code.

If you like to add anything more than this to the footer, then please be free to do so.

Now, if you have activated this test theme already in the wp dashboard. Now, just refresh the homepage. You see that there is only a lengthy plain text. Because, we haven’t yet coded the theme completely.

(It is better if you add demo content to the wordpress http://codex.wordpress.org/Theme_Unit_Test)

plain

As you can see we haven’t add your blog title to the theme yet. So, we gonna open the header.php again and add this code at the end of the previous code.

The aim of the above code is to echo the blog title and description at the top of the page.

Now, after adding the code to the header.php the total code in header.php must look like this.

Basically, we have completed coding our theme here. We shall now start with the styling, with css code. Start adding css code to the style.css page.

It will make the page perfectly aligned, and fluid. Check it below.

Wordpress theme full page preview.
WordPress theme full page preview.

Now you should start choosing pictures, colors and everything else by yourselves and start adding.

Here completes the creation of WordPress theme. It was totally tested and worked on 2014’s WordPress release.

PREVIOUS PART
Create your own WordPress theme from scratch [Part 4]