HEX
Server: LiteSpeed
System: Linux altar40.supremepanel40.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: sescorpcl (4477)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /home/sescorpcl/public_html/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' );