php - Creating a Wordpress Child Theme -
i having issue , hoping might have suggestion me. trying create child theme can make changes styles , page functions in wordpress v 4.1.1
my issue when activate child theme site goes blank (white) , visible wordpress admin panel toolbar @ top of screen. followed instructions here https://codex.wordpress.org/child_themes
my parent theme called qk_theme located @ wp-contents/themes/qk_element
so created new folder wp-contents/themes/qk_element-child
in new folder have style.css file contains
/* theme name: qk_element child theme uri: example.com description: child theme based on qk_elemen author: jay author uri: none template: qk_element version: 1.0 tags: light, gray, white, custom background, custom menu, editor style, featured images, flexible header, full width template, microformats, post formats, rtl language support, sticky post, theme options, translation ready text domain: qk_element-child
*/
then have functions.php file in have
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { 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') ); }
any suggestions??