Create a custom WordPress theme: Step 3

There are many different WordPress themes available, but sometimes you just cannot find the one that will fit your needs. When that happens, it is time to create your very own custom theme. I will show you in a series of six steps how to do just that.

In step 1 we learned how the themes work, a first step in creating your own custom theme for WordPress.

In step 2 we learned to create the template files. Now, it’s time to look at creating the header file.

Step 3.

As you know, the theme will need a header file which is the top portion of the website, usually where the logo and other top elements reside.  Other components can be added, but for now let’s keep it simple.

The Header File: name it header.php



<title>My Theme</title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">



<div id="wrapper">

<div id="header">

<h1>This is the header</h1>


You should now have a solid understanding of how custom themes work and the technical knowledge on how to create your template and header files. Stay tuned for step 4.

Posted on March 20, 2015 and filed under Custom Wordpress Themes.