If you are new to develop wordpress theme then just use following steps to create the theme. Here we given very simple steps to create simple wordpress theme. Just follow our steps and create basic and simple wordpress theme.
How to create simple wordpress theme
For wordpress theme only two files are required.
- style.css
- index.php
Only with these two files you are able to create the basic theme of wordpress
How above file should be written. Following necessary code you need to put in that file.
Style.css
/*
Theme Name: WordPressapi
Theme URI: wordpressapi-homepage
Description: a-brief-description of theme
Author: your-name
Author URI: your-URI
Template: use-this-to-define-a-parent-theme--optional
Version: a-number--optional
.
General comments/License Statement if any.
.
*/
Under this you can put your css code.
Index.php
<?php
if (have_posts()) : while (have_posts()) : the_post();
//following line will fetch the post and page code.
the_content();
endwhile; endif;
?>