child theme doesn't contain any styles to be modified
-
Hello! I just created a child theme for twenty sixteen according to this guide.
I activated the child theme and selected the child theme in the editor. But the style sheet only contains the code I put in there to create the child theme, and not the styles from the parent theme. should I copy the styles from the parent theme? in the functions.php i used this code:
<?php //make sure no whitespace precedes the opening PHP tag add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>
- The topic ‘child theme doesn't contain any styles to be modified’ is closed to new replies.