child theme
-
I’m trying to create a child theme for my site, but the correct way is this now…
@import should not be used to import the parent stylesheet into the child theme. The correct method is to use wp_enqueue_style() to enqueue the parent stylesheet, using this code in your child theme’s “functions.php”. You will need to create a functions.php in your child theme’s root folder (This is the only two files needed to create a child theme). Right at the start, on the first line, you should add an opening php tag. All other code will follow after this opening php tag
I have some questions please…
how do i create a PHP file – in Notepad or something?
what are the two files needed – functions.php and the style.css from the parent?
what’s an opening PHP tag?Please help, I’m still learning!
Thank you
- The topic ‘child theme’ is closed to new replies.