wordpress儿童主题白屏

Wordpress child theme white screen

不确定我做错了什么。我从一个普通的自定义主题开始,然后决定扩展 twentyfifteen 主题,所以我引入了父主题的样式 per the codex,并将模板添加到我的 style.css 文件中。

我在 functions.php 中有一些自定义内容,但即使我删除了除 wp_enque_style 之外的所有内容,我仍然会出现白屏。

我打开了调试。根本没有任何错误。只是一个白屏。

这是我的函数文件:

<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
    wp_enqueue_style( 'twentyfifteen-style', get_template_directory_uri() . '/style.css' );

}

还有我的Style.css

/*
Theme Name: veochild
Theme URI: 
Template:  twentyfifteen
Author: veo
Author URI: 
Description: Veo Child Theme
Version: 1.0
License: 
License URI: 
Tags: 
Text Domain: veo
*/

奇怪的是,如果我输入域。local/wp-admin我仍然可以访问管理站点。如果我将主题更改为 twentyfifteen,则效果很好。除了 functions.php 和 style.css 之外,我的主题目录中没有任何其他文件,我的主题文件夹与 twentyfifteen.

位于同一目录中

不太确定还需要寻找什么。

奇怪的是,当我说:

I don't have any other files in my theme directory other than functions.php and style.css

...我撒谎了,否则我一定是瞎了。该文件夹中还有一个空 index.php 文件。

我花了一段时间才意识到这一点。感谢任何看过这个的人。抱歉浪费时间。