Theme creation in wordpress is very easy and simple process. You can create theme from scratch or download any theme template from wordpress theme template provider sites. To create theme you will have to know HTML very well and how you will create your theme structure according to that. Before start creating theme you have to know the structure of wordpress themes, how it will work, how to define them and many more. So lets first check this post about wordpress theme structure.
Lets start creating of our new custom theme from scratch. First of all create one folder in your wp-content/themes directory with name “mytheme” or whatever you want to give, but remember the folder name should be in lowercase. As we seen the theme structure of wordpress creating first our main files in the theme.
First create style.css file in our theme. This file will handle the style and formatting of your website. Here is the code.
Theme Name: My Theme
Theme URI: http://onlineblogwebsite.com/
Description: This is the sample theme.
Author: Prashant Chaudhari
Author URI: http://onlineblogwebsite.com/
This style.css file let you know the theme initialize in your wordpress backend with blank image and Theme name and description. To show image of your theme then upload screenshot.png to your theme.
The second file of the theme is index.php