Issue setting up a child theme


I have an issue loading a child theme for the Courage Pro theme on my new site (running WordPress 5.5.1). I was able to create a child theme for another WP theme (e.g. twentyseventeen) on this site. I was also able to create a child for Courage Pro on another site some time ago (

But when I activate my courage-child theme on, I get a “no css” rendering of the site (as you can see if you check it today).

I’m using these files in the “courage-child” folder (the parent folder is “courage”):


 Theme Name:   Courage Child
 Theme URI:
 Description:  Courage Child Theme
 Author:       Jean Lalonde
 Author URI:
 Template:     courage
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:
 Tags:         courage
 Text Domain:  courage-child


add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

Looking at the HTML source of my homepage (view-source:, I can’t find a line such as…

<link rel='stylesheet' id='parent-style-css' href='' type='text/css' media='all' />
(taken from my working site)

… that is normally found in pages of a site with a child theme. It looks like the function theme_enqueue_styles() did not do its job? Any idea what could be wrong?



  • This topic was modified 1 day, 8 hours ago by jlalonde.

The page I need help with: [log in to see the link]

Source link