How to add ADDITIONA:L stylesheets to child themes?
-
I am trying to make a child theme based on twentytwenty.
I have used the code below to add the parent styles.
function main_child_style() { /*Enqueue The Main twentytwenty Styles*/ wp_enqueue_style( 'main_styles', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'main_child_style' );
That works, but I want to add some more styles in a separate directory like /assets/css/morestyle.css
I have tried playing around with the function above, but it will not load the styles.
How do I load more styles into my child theme?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add ADDITIONA:L stylesheets to child themes?’ is closed to new replies.