Child theme does not override parent
-
Hi,
After upgrading to WordPress version 4.5.3–sv_SE and Themia LiteVersion 1.4.6 the child theme does no longer override the parent.
Before the theme upgrade the child worked well, also even after the WordPress upgrade.
I remember having a lot of problem before the child overrode the parent when creating the site, but the below code finally made it (but it read 1.4.0 before today’s upgrade).
themia-lite-child/style.css:
/* Theme Name: Themia Lite Child Description: Themia Lite Child Theme Author: Author URI: Template: themia-lite Version: 1.4.6 */ themia-lite-child/functions.php:
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘parent-style’) );
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}
?>
`I have also tried to rename the child-folder’s name temporarily and to activate another theme to “zero” any settings but that didn’t help.
Would very much appreciate your advice!
Best regards
- The topic ‘Child theme does not override parent’ is closed to new replies.