wordpress - 安装父主题时出现 Wordpress 错误
问题描述
我是网络开发新手:尝试将自定义主题安装到 Wordpress。运行 Windows 10 并使用 MAMP 在本地服务器上工作。
当我去看我的主题时,我收到以下消息:
Broken Themes
The following themes are installed but incomplete.
Name Description
mywebsite The parent theme is missing. Please install the "mywebsite;" parent theme.
尝试安装时出现的错误:
An unexpected error occurred. Something may be wrong with WordPress.org or this
server’s configuration. If you continue to have problems, please try the support
forums.
有谁知道我如何解决这个问题?
谢谢
解决方案
检查您的主题子 style.css 中是否有:
/*
Theme Name: yourtheme-child
Template: yourtheme
Text Domain: yourtheme-child
*/
在主题 style.css 中:
/*
Theme Name: yourtheme
*/
推荐阅读
- c++ - 为什么 std::equal_to 会导致动态分配?
- bash - 使用 Shell 在 printf 中显示数字和 %d 之间的数学表达式的结果
- excel - 更新数据用户表单后存储为文本的值
- xamarin - MvvmCross iOS UILabel AttributedText 与语言转换器
- spring-boot - POST请求中的Oauth2纯文本凭据?
- reactjs - 为什么 GraphQL 将数组中的第一项显示为所有项?
- java - 错误:intellij 错误 cucumber.api.cli.Main
- javascript - CORS 策略已阻止访问来自原点 'null' 的脚本
- java - 如何在不遇到 OutOfMemoryError 的情况下将工作表附加到现有 Excel 文件?
- java - 绘制新卡时出现总和问题 - 二十一点