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.
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
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<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.