Child theme functions.php causes blank page

This topic contains 3 reply and 3 voices, and was last updated by Sk 10 years, 5 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
July 1, 2014 at 9:10 pm 22674
Sk Hello, I'm trying to create a child theme and following the documentation causes the page to become blank. Specifically when I enter the functions.php code:
<? php

define('THEMEROOT', get_stylesheet_directory_uri());
function scripts() {
	wp_enqueue_style( 'dokan-child-style', THEMEROOT . '/style.css', false, null );
}

add_action(wp_enqueue_scripts', 'scripts', 99);
Any help?
July 1, 2014 at 9:49 pm 22680
Tareq Hasan Tareq Hasan

Seems like you missed a quote on the add_action function
add_action( 'wp_enqueue_scripts', 'scripts', 99);

July 1, 2014 at 10:24 pm 22686
Kevin Kevin

Unfortunately, that didn’t fix the issue.

<? php

define('THEMEROOT', get_stylesheet_directory_uri());
function scripts() {
	wp_enqueue_style( 'dokan-child-style', THEMEROOT . '/style.css', false, null );
}

add_action('wp_enqueue_scripts', 'scripts', 99);
July 3, 2014 at 12:22 am 22800
Sk Sk

Please remove the space from the first line in <? php -> <?php. may be this is the problem.

Thank you.

Viewing 3 Posts - 1 through 3 (of 3 total)