How to Make Your Own Theme – PART 7
Written by TJ Marsh Monday, 11 March 2013
Now that we’ve covered the basics, it’s time to step into new territory and do some experimenting of your own. For this particular theme, I will continue the customization by modifying the following template files:
- single.php – This template tells WordPress how to display single posts.
- searchform.php – This custom template, referenced in sidebar.php, integrates with WordPress’ search function and lets you style it as you’d like. I added a “size=12″ element to the search box to help it fit inside the column.
- page.php – This template tells WordPress how to display individual pages.
- search.php – This template tells WordPress how to display your search results.
- comments.php – This rather intimidating looking template tells WordPress how to display your comments. Just take your time going through it, things aren’t so scary as they may seem at first
- archives.php – This template tells WordPress how to display the archive results.
There’s a whole lot more work that I’ll be doing on this particular theme, but for the sake of keeping things basic, I’ll talk about that in future tutorials. I’ll be creating templates for individual posts, etc and adding more dynamic elements within the template. For now, though, we’ll just keep things basic.