HEX
Server: Microsoft-IIS/10.0
System: Windows NT H2838467 10.0 build 14393 (Windows Server 2016) AMD64
User: IWPD_8(ghana) (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: C:/Inetpub/vhosts/ghanaschoolsupport.com/httpdocs/wp-content/themes/sydney/inc/block-styles.php
<?php
/**
 * Block styles
 *
 * @package Sydney
 */

function sydney_block_styles() {
	register_block_style( // phpcs:ignore WPThemeReview.PluginTerritory.ForbiddenFunctions.editor_blocks_register_block_style
		'core/site-title',
		array(
			'name'          => 'sydney-no-margin',
			'label'         => __( 'No margin', 'sydney' ),
		)
	);  

	register_block_style( // phpcs:ignore WPThemeReview.PluginTerritory.ForbiddenFunctions.editor_blocks_register_block_style
		'core/paragraph',
		array(
			'name'          => 'sydney-no-margin',
			'label'         => __( 'No margin', 'sydney' ),
		)
	);  

	register_block_style( // phpcs:ignore WPThemeReview.PluginTerritory.ForbiddenFunctions.editor_blocks_register_block_style
		'core/heading',
		array(
			'name'          => 'sydney-no-margin',
			'label'         => __( 'No margin', 'sydney' ),
		)
	);  

	register_block_style( // phpcs:ignore WPThemeReview.PluginTerritory.ForbiddenFunctions.editor_blocks_register_block_style
		'core/image',
		array(
			'name'          => 'sydney-rounded',
			'label'         => __( 'Slightly rounded', 'sydney' ),
			'inline_style' => '.wp-block-image.is-style-sydney-rounded img { border-radius:30px; }',
		)
	);

	register_block_style( // phpcs:ignore WPThemeReview.PluginTerritory.ForbiddenFunctions.editor_blocks_register_block_style
		'core/gallery',
		array(
			'name'          => 'sydney-rounded',
			'label'         => __( 'Slightly rounded', 'sydney' ),
			'inline_style' => '.wp-block-gallery.is-style-sydney-rounded img { border-radius:30px; }',
		)
	);  
}
add_action( 'init', 'sydney_block_styles' );