• Resolved leemon

    (@leemon)


    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)
  • Theme Author Dinev Dmitry

    (@dimadinev)

    imagery-navigation styles now included in the main theme styles file

    try the example below

    function imagery_child_enqueue_styles() {
    	wp_enqueue_style( 'imagery-style', get_template_directory_uri() . '/style.css' );
    	wp_enqueue_style( 'imagery-child-style', get_stylesheet_uri() );
    }
    add_action( 'wp_enqueue_scripts', 'imagery_child_enqueue_styles' );
    Thread Starter leemon

    (@leemon)

    It’s working now.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child theme and stylesheet’ is closed to new replies.