Disable Responsive Typography in Genesis Blocks

Unless otherwise indicated, the code snippet you see below should be placed into your child theme’s functions.php file.

Genesis Blocks incorporates responsive controls into the default WordPress Heading and Paragraph blocks, enabling you to select varying font sizes, and occasionally line heights, for display on desktop, tablet, and mobile devices.

To deactivate this functionality, insert the following code into your theme’s functions.php file:

function disable_responsive_typography( $enabled_features ) {
	foreach( $enabled_features as $enabled_feature_key => $enabled_feature ) {
		if ( $enabled_feature === 'responsiveFontSettings' ) {
			unset( $enabled_features[ $enabled_feature_key ] );
		}
	}
 
	return $enabled_features;
}
add_filter( 'genesis_blocks_features_enabled', __NAMESPACE__ . '\disable_responsive_typography' );
What are your feelings