简体   繁体   English

安装父主题时出现Wordpress错误

[英]Wordpress error when installing parent theme

I'm new to web dev: trying to install a custom theme to Wordpress. 我是Web开发人员的新手:尝试将自定义主题安装到Wordpress。 Running Windows 10 and working on a local server with MAMP. 运行Windows 10并使用MAMP在本地服务器上工作。

When I went to see my theme, I get the following message: 当我去看主题时,收到以下消息:

Broken Themes
The following themes are installed but incomplete.

Name        Description
mywebsite   The parent theme is missing. Please install the "mywebsite;" parent theme.

Error I get when trying to install: 尝试安装时出现错误:

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.

Does anyone know how I fix this? 有谁知道我该如何解决?

Thanks 谢谢

check if in your theme-child style.css has: 检查您的子主题style.css是否具有:

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

and in theme style.css: 并在主题style.css中:

/*
    Theme Name: yourtheme
*/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM