Skip to content

Instantly share code, notes, and snippets.

Last active Sep 4, 2019
What would you like to do?
Sparkling WordPress theme, child
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
$parent_style = 'sparkling-style'; // This is 'sparkling-style' for the sparkling theme.
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 ),
Theme Name: sparkling Child
Theme URI:
Description: sparkling Child Theme
Author: John Doe
Author URI:
Template: sparkling
Version: 1.0.0
License: GNU General Public License v2 or later
License URI:
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: sparklingchild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment