Usually a WP theme must have files that are:
404.php |
archive.php |
attachment.php |
author.php |
footer.php |
category.php |
functions.php |
comments.php |
header.php |
page.php |
index.php |
search.php |
single.php |
sidebar.php |
Style.css |
tag.php |
There is no longer a description of each file function, it is believed to be at a glance.
Next we start editing style.css, which usually starts with some copyright tags:
/* Theme Name:mini themetheme uri:http://example.com/example/description:a search engine optimized website framework F or WordPress. Author:your Nameauthor uri:http://example.com/version:1.0tags:comma-separated tags that describe Your theme.
...
*/
To complete a home page, we need to involve 3 files: header.php/index.php/footer.php, calling header.php and footer.php in index.php, need to use:
1 <?php get_header ();?>//Import head
2//index.php middle section
3 <?php get_footer ();?>//import Trailer
WordPress Learning Series 2: Templates and directory structure