WordPress更新后破碎的主题

时间:2017-11-07 21:01:14

标签: wordpress

我刚刚更新到WordPress 4.8.3,发现我的自定义父主题已被破坏。我已经有一段时间了,所以我对一切都不是很新鲜,但是WordPress中的错误如下:

Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.

我不需要Template标题,因为这不是子主题,我的主题文件夹 index.php中有~/www/website/wp-content/themes/theme/模板。有人遇到过这种情况么?谷歌搜索只指向Template中缺少style.css标头的解决方案。提前谢谢。

我的style.css仅包含以下标题:

/*
Theme Name: Portfolio
Theme URI: http://www.website.com
Author: Author Name
Author URI: http://www.website.com
Description: Custom theme converted from Bootstrap template
Version: 1.1
*/

1 个答案:

答案 0 :(得分:1)

如果其他人遇到这种情况,解决办法就是将我的style.css移动到主题的根目录中。以前,它位于css文件夹中,工作正常。

相关问题