THIS THREAD HAS BEEN CLOSED.

Child theme shows white screen

Updated on Aug 26, 2016 in OneEngine
0 on Aug 26, 2016

Hi, I am trying to create a child theme for OneEngine and everything seems to go ok until I look at the site and all I have is a blank white screen. I have done this a thousand times with other themes and have never actually experienced this before.

I have this in the style.css:

/*
Theme Name: One Engine Child
Theme URI: http://enginethemes.com/
Description: One Engine
Author: One Engine
Author URI: http://enginethemes.com
Template: oneengine
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:
Text Domain:
*/

 

And according to best practice I I create child functions.php file and add this:

<?php
function my_theme_enqueue_styles() {

$parent_style = ‘parent-style’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen 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’ );
?>

Everything is according to the WordPress Codex so I can’t figure out what is going wrong.   

 

  • Liked by
Loading more replies
Posting & Replying function will be deactivated from 3pm GMT+7 12th Sep.
Read More