6.8.0 problem: child theme style.css not loading

I’ve updated a few sites today and noticed this issue with all of them. Ultimately, I reverted to 6.7.13 and saw the problem go away immediately…

  1. Updated a site
  2. Noticed that an important style rule was not being applied
  3. Opened dev tools, rule nowhere to be found
  4. Checked that the element has the correct classname - it did
  5. Verified the selector and rules were in /wp-content/themes/pro-child/style.css - they were
  6. Checked parsed source code for style.css - this was not loading at all, nowhere to be found
  7. Removed all caching plugins to eliminate an issue with that - no change
  8. Reverted back to 6.7.13 - styles lit back up right away, source code confirmed style.css loading as expected

Any thoughts on this issue would be appreciated. Again, this happened across multiple sites and all have been reverted. There is therefore no link to provide where this issue is currently active.

Thank you!

1 Like

Did a little more digging and if I enqueue it manually, the problem does go away, obviously:

function the_scripts() { 
    wp_enqueue_style( 'do-the-thing', get_stylesheet_directory_uri() . '/style.css', [], null );
} 
add_action('wp_enqueue_scripts', 'the_scripts');

But, I should not have to do this. Any ideas whats going on here?

We’ll release a fix in the next point release. Have a great day.

1 Like

Thanks @charlie!

1 Like