child theme with multiple stylesheets
-
Hi Svetoslav
The parent theme I’m using has 2 stylesheets. A standard stylesheet and a responsive style sheet. When creating a child theme, style.css is ported over… but not the responsive sheet. Just wondering how the child theme might grab both sheets??
I’m assuming I could do it here somewhere…
function orbisius_ct_soaveggies_child_theme_enqueue_styles() {
$parent_style = ‘orbisius_ct_soaveggies_parent_style’;
$parent_base_dir = ‘veggies’;wp_enqueue_style( $parent_style,
get_template_directory_uri() . ‘/style.css’,
array(),
wp_get_theme( $parent_base_dir ) ? wp_get_theme( $parent_base_dir )->get(‘Version’) : ”
);wp_enqueue_style( $parent_style . ‘_child_style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
}add_action( ‘wp_enqueue_scripts’, ‘orbisius_ct_soaveggies_child_theme_enqueue_styles’ );
Thanks for your help
Damon
The topic ‘child theme with multiple stylesheets’ is closed to new replies.