Child theme activation problem
-
Hi,
I’m trying to make a child theme for the TwentyFifteen theme, on a local installation of WordPress, but I’m having some problems. I want to create a child theme so I can try out Google Fonts, and I’ve tried to follow along with the documentation, but whenever I activate my child theme, the site gets messed up.
I’ve added a folder under the “Themes” directory titled “twentyfifteen-child”. Inside of this folder I’ve added the style.css and functions.php.
The style.css contains the following code:
/*
Theme Name: Twenty Fifteen Child
Theme URI: https://example.com/
Description: Child theme for the Twenty Fifteen theme
Author: J?rund Jenssen Berg
Author URI: https://example.com/about/
Template: twentyfifteen
Version: 0.1.0
*/@import url (“../twentyfifteen/style.css”);
And the functions.php contains this code:
<?php
function child_scripts() {
wp_enqueue_style( “child-google-fonts”, “//fonts.googleapis.com/css?family=Bangers|Lora” );
}
add_action( “wp_enqueue_scripts”, “child_scripts” );
Where have I messed up?
Thanks =)
- The topic ‘Child theme activation problem’ is closed to new replies.