Stylesheet fix for child themes?
-
For your consideration..
Consider change line 413 of functions.php from:
wp_enqueue_style('style', get_template_directory_uri() . '/style.css', array(), null, 'all');
to:
wp_enqueue_style('style', get_stylesheet_directory_uri() . '/style.css', array(), null, 'all');
This will allow the css file to be read from the child theme’s css file instead of the parent.
Thanks!
Rob
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Stylesheet fix for child themes?’ is closed to new replies.