Edit File by line
/home/barbar84/www/wp-conte.../themes/twentytw.../inc
File: block-styles.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Block Styles
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://developer.wordpress.org/reference/functions/register_block_style/
[4] Fix | Delete
*
[5] Fix | Delete
* @package WordPress
[6] Fix | Delete
* @subpackage Twenty_Twenty_One
[7] Fix | Delete
* @since Twenty Twenty-One 1.0
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
if ( function_exists( 'register_block_style' ) ) {
[11] Fix | Delete
/**
[12] Fix | Delete
* Register block styles.
[13] Fix | Delete
*
[14] Fix | Delete
* @since Twenty Twenty-One 1.0
[15] Fix | Delete
*
[16] Fix | Delete
* @return void
[17] Fix | Delete
*/
[18] Fix | Delete
function twenty_twenty_one_register_block_styles() {
[19] Fix | Delete
// Columns: Overlap.
[20] Fix | Delete
register_block_style(
[21] Fix | Delete
'core/columns',
[22] Fix | Delete
array(
[23] Fix | Delete
'name' => 'twentytwentyone-columns-overlap',
[24] Fix | Delete
'label' => esc_html__( 'Overlap', 'twentytwentyone' ),
[25] Fix | Delete
)
[26] Fix | Delete
);
[27] Fix | Delete
[28] Fix | Delete
// Cover: Borders.
[29] Fix | Delete
register_block_style(
[30] Fix | Delete
'core/cover',
[31] Fix | Delete
array(
[32] Fix | Delete
'name' => 'twentytwentyone-border',
[33] Fix | Delete
'label' => esc_html__( 'Borders', 'twentytwentyone' ),
[34] Fix | Delete
)
[35] Fix | Delete
);
[36] Fix | Delete
[37] Fix | Delete
// Group: Borders.
[38] Fix | Delete
register_block_style(
[39] Fix | Delete
'core/group',
[40] Fix | Delete
array(
[41] Fix | Delete
'name' => 'twentytwentyone-border',
[42] Fix | Delete
'label' => esc_html__( 'Borders', 'twentytwentyone' ),
[43] Fix | Delete
)
[44] Fix | Delete
);
[45] Fix | Delete
[46] Fix | Delete
// Image: Borders.
[47] Fix | Delete
register_block_style(
[48] Fix | Delete
'core/image',
[49] Fix | Delete
array(
[50] Fix | Delete
'name' => 'twentytwentyone-border',
[51] Fix | Delete
'label' => esc_html__( 'Borders', 'twentytwentyone' ),
[52] Fix | Delete
)
[53] Fix | Delete
);
[54] Fix | Delete
[55] Fix | Delete
// Image: Frame.
[56] Fix | Delete
register_block_style(
[57] Fix | Delete
'core/image',
[58] Fix | Delete
array(
[59] Fix | Delete
'name' => 'twentytwentyone-image-frame',
[60] Fix | Delete
'label' => esc_html__( 'Frame', 'twentytwentyone' ),
[61] Fix | Delete
)
[62] Fix | Delete
);
[63] Fix | Delete
[64] Fix | Delete
// Latest Posts: Dividers.
[65] Fix | Delete
register_block_style(
[66] Fix | Delete
'core/latest-posts',
[67] Fix | Delete
array(
[68] Fix | Delete
'name' => 'twentytwentyone-latest-posts-dividers',
[69] Fix | Delete
'label' => esc_html__( 'Dividers', 'twentytwentyone' ),
[70] Fix | Delete
)
[71] Fix | Delete
);
[72] Fix | Delete
[73] Fix | Delete
// Latest Posts: Borders.
[74] Fix | Delete
register_block_style(
[75] Fix | Delete
'core/latest-posts',
[76] Fix | Delete
array(
[77] Fix | Delete
'name' => 'twentytwentyone-latest-posts-borders',
[78] Fix | Delete
'label' => esc_html__( 'Borders', 'twentytwentyone' ),
[79] Fix | Delete
)
[80] Fix | Delete
);
[81] Fix | Delete
[82] Fix | Delete
// Media & Text: Borders.
[83] Fix | Delete
register_block_style(
[84] Fix | Delete
'core/media-text',
[85] Fix | Delete
array(
[86] Fix | Delete
'name' => 'twentytwentyone-border',
[87] Fix | Delete
'label' => esc_html__( 'Borders', 'twentytwentyone' ),
[88] Fix | Delete
)
[89] Fix | Delete
);
[90] Fix | Delete
[91] Fix | Delete
// Separator: Thick.
[92] Fix | Delete
register_block_style(
[93] Fix | Delete
'core/separator',
[94] Fix | Delete
array(
[95] Fix | Delete
'name' => 'twentytwentyone-separator-thick',
[96] Fix | Delete
'label' => esc_html__( 'Thick', 'twentytwentyone' ),
[97] Fix | Delete
)
[98] Fix | Delete
);
[99] Fix | Delete
[100] Fix | Delete
// Social icons: Dark gray color.
[101] Fix | Delete
register_block_style(
[102] Fix | Delete
'core/social-links',
[103] Fix | Delete
array(
[104] Fix | Delete
'name' => 'twentytwentyone-social-icons-color',
[105] Fix | Delete
'label' => esc_html__( 'Dark gray', 'twentytwentyone' ),
[106] Fix | Delete
)
[107] Fix | Delete
);
[108] Fix | Delete
}
[109] Fix | Delete
add_action( 'init', 'twenty_twenty_one_register_block_styles' );
[110] Fix | Delete
}
[111] Fix | Delete
[112] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function