首页 > 解决方案 > 安装父主题时出现 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.

有谁知道我如何解决这个问题?

谢谢

标签: wordpresswindowsserverthemesmamp

解决方案


检查您的主题子 style.css 中是否有:

/*
    Theme Name: yourtheme-child
    Template: yourtheme
    Text Domain: yourtheme-child
*/

在主题 style.css 中:

/*
    Theme Name: yourtheme
*/

推荐阅读