gpt4 book ai didi

php - WordPress 主题 : Standalone theme need index. php 文件错误

转载 作者:可可西里 更新时间:2023-10-31 23:55:36 26 4
gpt4 key购买 nike

我在编码时突然遇到错误 - wordpress -> theme: enter image description here

我不明白为什么会这样,因为我有一个 index.php 页面。也有 css 样式表。 style.css 也有如下注释

样式.css

Theme Name: samirTheme
Author: samir
Author URI: www.wordpress.com
Version: 1.0
Description: This is a cool theme
Template: Test1

这是文件夹结构

enter image description here

wordpress 新手。很困惑为什么主题被破坏并且没有出现在 wordpress 中。有什么想法吗?

最佳答案

解决方案解决办法其实很简单。我发现很难找到好的答案资源,所以我在这里回答。

缺少 style.css:模板:注释标题中的主题,即

/*
Theme Name: samirTheme
Theme URI: http://example.com/twenty-fifteen-child/
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfifteen <--------------------------------------------
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fifteen-child
*/

关于php - WordPress 主题 : Standalone theme need index. php 文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43300582/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com