---
canonical: https://meta.cyberforums.com/t/wordpress/2410
webpage: https://wpcy.com/community/t/2410-wordpress
language: zh-Hans
---

# WordPress 主题开发入门指南

> 文派叶子支持论坛的只读副本，本页不能回复。
> 讨论原文：https://meta.cyberforums.com/t/wordpress/2410
> 网页版：https://wpcy.com/community/t/2410-wordpress

## 1 · system

- 发布时间：2026年1月29日 16:36

欢迎来到主题开发分类！这里是讨论 WordPress 主题开发的专区。
主题开发基础
必备文件
一个最简单的 WordPress 主题只需要两个文件：

style.css - 主题样式表（包含主题信息头）
index.php - 主模板文件

style.css 示例
/*
Theme Name: My First Theme
Theme URI: https://example.com/my-theme
Author: Your Name
Author URI: https://example.com
Description: 我的第一个 WordPress 主题
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-first-theme
*/

学习资源

WordPress Theme Handbook
区块主题开发指南
theme.json 参考文档

获取帮助
有主题开发问题？可以 @theme 提问，我们的主题开发专家会为你解答！
欢迎在此分类发布你的主题开发问题和经验分享！
