I’ve just started checking out the Twentytwenty theme but I can’t change text color in my pages because the body color is set inline within a <style> tag called twentytwenty-style-inline-css which is generated by wp_head.

I understand the importance of these styles, but why override body?

I’ve looked all over and I cannot seem to find how to stop wp_head from generating these styles.

Is there any way to easily fix this or should I just us an older theme?

1 Answer
1

https://wordpress.org/support/topic/remove-inline-styles-5/

 add_action( 'wp_enqueue_scripts', function() {
        $styles = wp_styles();
        $styles->add_data( 'twentytwenty-style', 'after', array() );
    }, 20 );

Leave a Reply

Your email address will not be published. Required fields are marked *