Hi Anders,
Okay, I managed to figure out how to create a ChildsTheme. I saved a new style.css file in the theme directory. Added all the necessary details.
Now, I’m stuck on step 3 in that link you provided above. The Enqueue part which I’m not sure I am doing correctly.
I created a functions.php file and I added this content into it:
<?php
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
function my_theme_enqueue_styles() {
$parent_style = ‘parent-style’; // This is ‘twentyfifteen-style’ for the Hitchcock theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
}
**************
But when I log onto my wordpress dashboard and go to my Themes, I see this message:
Broken Themes
The following themes are installed but incomplete.
Name Description
Hitchcock The parent theme is missing. Please install the “Hitchcock Child” parent theme.
What am I doing wrong?
Sorry, I’m really new to the Child Theme thing.