I’m trying to create a child theme and having trouble with code to call up stylesheets in functions.php. I’m pulling in saraswati-blog’s style.css but the other stylesheets for the sidebar, etc is not coming through. Do you have recommended code for calling the stylesheets for a child theme? I am not a coder which is why I’m having trouble with this. Thanks for any help.
This is what I’m using now.
<?php
add_action( ‘wp_enqueue_scripts’, ‘saraswati_blog_child_enqueue_styles’ );
function my_theme_enqueue_styles() {
wp_enqueue_style( ‘saraswati-blog-child-style’, get_stylesheet_uri(),
array( ‘saraswati-blog-style’),
wp_get_theme()->get(‘1.0.0’) // this only works if you have Version in the style header
);
}
?>