#1639
Avatarraphael.gia
Supported

Hello Billy,

Should I let the the child theme functions.php file blank ? Does Freshio parent theme files load both parent’s and child’s stylesheets ? I don’t need to add PHP functions at the moment but just to be sure that stylesheets load correctly if I activate a child theme for custom CSS.

I found theses lines of code in the class-main.php :
/**
* Enqueue child theme stylesheet.
* A separate function is required as the child theme css needs to be enqueued _after_ the parent theme
* primary css and the separate WooCommerce css.
*
* @since 1.5.3
*/
public function child_scripts() {
if (is_child_theme()) {
$child_theme = wp_get_theme(get_stylesheet());
wp_enqueue_style(‘freshio-child-style’, get_stylesheet_uri(), array(), $child_theme->get(‘Version’));
}
}