Missed line in functions.php
-
A very nice and simple plugin.
You missed one line in the functions.php though that broke dependencies for style.css
When I added $parent_style = ‘parent-style’; everything worked like a charm.
function 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)); } add_action('wp_enqueue_scripts', 'theme_enqueue_styles');
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Missed line in functions.php’ is closed to new replies.