Child Theme
-
I created a child theme, and I put the following in the child’s style.css file, but it doesn’t seem to work. Did I do anything wrong?
<?php
function my_theme_enqueue_styles() {$parent_style = ‘deejay-style’; // This is ‘deejay-style’ for the Deejay 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 ),
wp_get_theme()->get(‘Version’)
);
}
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Child Theme’ is closed to new replies.