打算出一套基础的wordpress模板制作教程,首先需要了解WordPress模板目录下文件代表的功能.
WordPress模板文件位于wp-content/themes目录下,一个文件夹代表一个主题.
style.css 样式表文件
index.php 主页文件
single.php 日志单页文件
page.php 页面文件
archvie.php 分类和日期存档页文件
searchform.php 搜索表单文件
search.php 搜索页面文件
comments.php 留言区域文件(包括留言列表和留言框)
404.php 404错误页面
header.php 网页头部文件
sidebar.php 网页侧边栏文件
footer.php 网页底部文件