I am trying to get a child theme to work. At first it didn't load because it didn't recognise it as a child theme. Now it does work but when I activate it, it loads a version of my page seemingly without any css or something. There's only text and images there, but no styling. Is it that it isn't using the parent theme fully or something?
I am just starting with Wordpress so I'm sorry if I'm not very clear or using the right terminology. Thanks in advance.
This is my functions.php file:
<?php
function my_theme_enqueue_styles() {
$parent_style = ‘twenty seventeen-style’;
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')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
twenty-seventeen-style