Let's tidy up the theme directory and code files. Perform the following steps for the same:
You tidied up your files and your code. You should now have a theme which is well coded and meets the WordPress coding standards. Well done!
The next step is to ensure that your stylesheet has all of the information users of your theme will need. In Chapter 3, Coding It Up, we added text at the top of the stylesheet inside comments to tell WordPress the name of the theme and provide more information. Now let's add to that.
The opening lines of the stylesheet are commented out and contain the following information about your theme:
Theme Name:
The full name of your theme.Theme URI:
Where the theme can be downloaded from.Description:
A quick description of what the theme looks like, any specific purpose it's best suited for, and/or any other theme it's based on or inspired by.Author:
Your name as the theme's author goes here.Author URI:
A URL to a page, where people can find out more about you.Version:
The version number—1.0 if it's a new theme. Each time you edit the theme, change this by adding a 0.1
increment for small changes or going up to the next whole number for major changes.Tags:
A list of tags applying to your theme, which will help people searching for themes with certain characteristics.You can also add license information—this won't be displayed on the Themes admin page, but will be visible to anyone who opens your stylesheet. This can take the form of the full license information or a short description of the license (for example, GPL).