Tag Info

New answers tagged

0

My previous answer is overly complicated and potentially doesn't respect the parent theme's dependency chain (see note in other answer). Here's another much simpler take that should work much better: function use_parent_theme_stylesheet() { // Use the parent theme's stylesheet return get_template_directory_uri() . '/style.css'; } function ...


-1

You can call the parent css as a separate file in your theme header.php Something like <link href="<?php echo get_stylesheet_directory_uri(); ?>/css/css.css" rel="stylesheet"> Depending on various factors it may be better to copy and paste the parent css into your child css file, and thus no need to import it at all. Saves http requests ...



Top 50 recent answers are included