Using a child theme with LitheStore
-
Hi I have created a child theme and it is installed and working. However, it is not overriding parent styles. Here is my functions.php code
<?php function my_theme_enqueue_styles() { $parent_style = ‘parent-style’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen 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’ ); ?>
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
Any help would be much appreciated!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Using a child theme with LitheStore’ is closed to new replies.