Child Theme not working
-
So i’ve followed the instructions at woothemes and codex to create a child theme for my site lovegreenteas.com but the child theme stylesheet does not load.
In wp-content/themes/storefront-child/functions.php I have the following code:
<?php
function theme_enqueue_styles() {
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’)
);
}add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’);
In wp-content/themes/storefront-child/style.css I have:
/*
Theme Name: Storefront-Child
Description: Sample Child Theme
Author: Kevin Thomson
Template: storefront
Version: 1.0
*/a {
color: #58965B;
}
- The topic ‘Child Theme not working’ is closed to new replies.