File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 43
43
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+Mono&display=block">
44
44
45
45
<?php
46
- // inline the theme's main stylesheet
47
- $ style_path = get_stylesheet_directory () . '/style.css ' ;
48
- if ( is_readable ( $ style_path ) ) {
49
- ?> <style><?php readfile ( $ style_path ); ?> </style><?php
46
+ // inline parent theme's stylesheet
47
+ $ parent_style_path = get_template_directory () . '/style.css ' ;
48
+ if ( is_readable ( $ parent_style_path ) ) {
49
+ ?> <style><?php readfile ( $ parent_style_path ); ?> </style><?php
50
+ } ?>
51
+
52
+ <?php
53
+ // inline child theme's stylesheet
54
+ $ child_style_path = get_stylesheet_directory () . '/style.css ' ;
55
+ if ( is_readable ( $ child_style_path ) ) {
56
+ ?> <style><?php readfile ( $ child_style_path ); ?> </style><?php
50
57
} ?>
51
58
52
59
<?php wp_head (); ?>
You can’t perform that action at this time.
0 commit comments