[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.
- The topic ‘[Theme: Blaskan] Child theme not working’ is closed to new replies.