Child Theme
We understood that it’s recommended to use a Child Theme to add/edit the functionality of parent theme. A default Blocksy functions.php unable to load Child Theme CSS. We need to add code to load Child Theme CSS.
Default Blocksy theme’s function.php
if (! defined('WP_DEBUG')) {
die( 'Direct access forbidden.' );
}
add_action( 'wp_enqueue_scripts', function () {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
});
Updated Blocksy theme’s function.php
if (! defined('WP_DEBUG')) {
die( 'Direct access forbidden.' );
}
add_action( 'wp_enqueue_scripts', function () {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_uri() );
});
Add replacing the code above, you may add CSS to Child Theme and able to load from front-end.
WordPress Blocksy Theme Load Child Theme CSS
Please do hesitate to contact me if you found out any mistake or typo.
