Love this theme!
I just want to point out a small bug that I found involving the Child Theme being Enqueued Twice.
If you look in the Sparkling theme Functions.php, you will find:
// Add main theme stylesheet
wp_enqueue_style( 'sparkling-style', get_stylesheet_uri() );
Then in the Sparkling Child Functions.php, you will find:
add_action( 'wp_enqueue_scripts', 'sparkling_enqueue_styles', 15 );
function sparkling_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')
);
Resulting in:
<link rel=‘stylesheet’ id=‘sparkling-style-css’ href=‘http://www.######.com/wp-content/themes/sparkling-child/style.css?ver=4.2.4’ type=‘text/css’ media=‘all’ />
<link rel=‘stylesheet’ id=‘parent-style-css’ href=‘http://www.######.com/wp-content/themes/sparkling/style.css?ver=4.2.4’ type=‘text/css’ media=‘all’ />
<link rel=‘stylesheet’ id=‘child-style-css’ href=‘http://www.######.com/wp-content/themes/sparkling-child/style.css?ver=4.2.4’ type=‘text/css’ media=‘all’ />
As you can see, the sparkling-style-css and child-style-css are pointing to the same file.
My solution:
(In Sparkling Functions.php)
// Add main theme stylesheet
wp_enqueue_style( 'sparkling-style', get_template_directory_uri(). '/style.css' );
(In Sparkling Child Functions.php)
add_action( 'wp_enqueue_scripts', 'sparkling_enqueue_styles', 15 );
function sparkling_enqueue_styles() {
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array('sparkling-style')
);