Child Theme not loading
-
I am trying to install a child theme for the theme Basic. I have managed to activate the child theme but it’s not loading in the head of the html, only the parent theme. I expect it is a problem with the functions.php since I don’t know how to use this code, I am just copy pasting. Please help me check I am using the correct identifiers.
<?php add_action( 'wp_enqueue_scripts', 'basic_child_enqueue_styles' ); function basic_child_enqueue_styles() { $basic_style = 'basic-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme. wp_enqueue_style( $basic_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') ); }
Thank you in advance for your help!
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Child Theme not loading’ is closed to new replies.