wordpress
自定义主题
-
找到 themes文件夹,位置
app\public\wp-content\themes
-
新建一个目录存放主题文件,目录结构如下:
这里我们的目录名是:fictional-university-theme
目录结构就是这样的:
-
fictional-university-theme
-
index.php
style.css
screenshot.png
(放入一张自己的图,命名为screenshot.png
)
-
-
在
style.css
中定义主题相关信息,如下/* Theme Name: Fictional University Author: Brad Version: 1.0 */
-
回到后台刷新下,就可以看到我们主题了