• Hi there,

    I was struggling with creating a child theme for hemingway, since the template seemed to include the parent style.css after the child style.css no matter what the function.php in the child theme was. I solved the problem by changing the function.php of hemingway at line 108 from

    wp_enqueue_style( 'hemingway_style', get_template_directory_uri() . '/style.css', $dependencies, wp_get_theme( 'hemingway' )->get( 'Version' ) );

    to

    wp_enqueue_style( 'hemingway_style', get_stylesheet_directory_uri() . '/style.css', $dependencies, wp_get_theme( 'hemingway' )->get( 'Version' ) );

    Now the child theme works with function.php of the child theme just enqueueing the parent css. I think this is the way it is supposed to work. So my non expert advise would be to change this in the hemingway main theme. Certainly I’m open to any correction to my opinion.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘creating child theme’ is closed to new replies.