At the very minimum, a WordPress Theme consists of two files:
- style.css
- index.php
style.css contains information about theme.
/* Theme Name: My Theme Theme URI: https://santoshyadavcse.wordpress.com/ Author: Santosh Yadav Author URI: https://santoshyadavcse.wordpress.com/about-santosh/ Description: This is simple theme used for theme creation demo. Version: 1.0 License: GNU General Public License License URI: http://www.gnu.org/licenses/gpl-2.0.html */ /* add your css below */
index.php file is main file loaded for your theme.
<?php /* Write your code here */ ?>
For more detail on them development you may refer to this page https://codex.wordpress.org/Theme_Development