【发布时间】:2017-10-16 19:47:11
【问题描述】:
我正在使用 html5blank 的子主题将前端站点加载到 wordpress 上,并且我得到了白屏处理 - 奇怪的是(或不是?)我只有在点击更新按钮时才得到它页面或当我从外观>编辑器中点击“更新文件”时。
我相信我已经完成了所有标准检查 - 插件、主题(如果是主题,为什么我什至可以访问?)。我查看了 phpmyadmin 并在那里看不到任何东西。
这就是我在functions.php 中的内容 -
<?php
function my_theme_enqueue_styles() {
$parent_style = 'html5blank-style'; // This is 'html5blank-style' for the HTML 5 Blank theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
我刚刚开始构建网站 - 我在插件面板中只有 Akismet 和 Hello Dolly,它们都没有被激活。任何人都可以在 functions.php 中发现我看不到的东西还是我需要检查的其他东西?
【问题讨论】: