How do I set up a child-theme without using @import
The code that is in codex for queuing the style of the parent theme instead of using @import, is not well commented, so i will comment it more, so you have this: <?php function my_theme_enqueue_styles() { $parent_style=”parent-style”; 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’); ?> 1.- line: $parent_style=”parent-style”; … Read more