wp_enqueue_classic_theme_styles()

In this article

Loads classic theme styles on classic themes in the frontend.

Description

This is used for backwards compatibility for Button and File blocks specifically.

Source

function wp_enqueue_classic_theme_styles() {
	if ( ! wp_theme_has_theme_json() ) {
		wp_enqueue_style( 'classic-theme-styles' );
	}
}

Changelog

VersionDescription
6.8.0Moved stylesheet registration outside of this function.
6.2.0Added File block styles.
6.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.