• Hey guys, just a quick heads up as this threw me for a loop today. You have a page on creating a child theme here:

    https://docs.themeisle.com/article/14-how-to-create-a-child-theme

    At the top of the page you have starter child themes. The functions file for the Zerif Lite child theme is missing the following line:

    wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ) );

    It should be after the parent is enqueued. Your code sample further down the page has the extra line and it fixes the CSS load order. Without it, the parent styles load after the child and override the child styles.

  • The topic ‘Missing line in sample child theme’ is closed to new replies.