[Theme: Blaskan] Child theme not working
-
I created a child theme but it wasn’t having any effect. Eventually I figured out that in /wp-content/themes/blaskan/functions.php where it says:
wp_enqueue_style( 'blaskan-style', get_template_directory_uri() . '/style.css', array(), false, 'screen' );
instead it should say:
wp_enqueue_style( 'blaskan-style', get_stylesheet_directory_uri() . '/style.css', array(), false, 'screen' );
This returns the child theme directory instead of the parent theme directory.
Rather than edit the parent file, you can create a functions.php file in the child directory, copy the whole CSS init function, and edit it there.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Theme: Blaskan] Child theme not working’ is closed to new replies.