Child theme and stylesheet
-
I’m using the following function to load the parent and child stylesheets in a child theme:
function child_enqueue_scripts() { wp_enqueue_style( 'imagery-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'imagery-style', 'imagery-navigation' ), false ); } add_action( 'wp_enqueue_scripts', 'child_enqueue_scripts' );
Since the last update, the child stylesheet is not loading. Has something changed?
Thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Child theme and stylesheet’ is closed to new replies.