What will the defaults be for:
Remove:
# General Structure ## Code ## Cover ## Embeds ## Gallery ## Group ## Image ## Latest Posts ## List ## More ## Pullquote ## Quote ## Separator ## Table ## Video # Additional Theme Styles ## Color Palette
e.g. new version of my width mixin:
@mixin width { max-width: 1160px; margin: 0 auto; @media screen and (max-width: 1280px) { margin-left: 6rem; margin-right: 6rem; } @media screen and (max-width: 820px) { margin-left: 4rem; margin-right: 4rem; } @media screen and (max-width: 640px) { margin-left: 3rem; margin-right: 3rem; } }
/* Add core block visual style support */
add_theme_support( 'wp-block-styles' );
/* Add full and wide align images */
add_theme_support( 'align-wide' );
/* Add responsive embed support */
add_theme_support( 'responsive-embeds' );
add_theme_support( 'editor-color-palette', array(
array(
'name' => __( 'Primary', 'beth2' ),
'slug' => 'primary',
'color' => '#ca0164',
),
array(
'name' => __( 'Secondary', 'beth2' ),
'slug' => 'secondary',
'color' => '#444',
),
) );
.has-primary-color {
color: #CA0164;
}
.has-primary-background-color {
background-color: #CA0164;
}
.has-secondary-color {
color: #444;
}
.has-secondary-background-color {
background-color: #444;
}
add_theme_support( 'editor-font-sizes', array(
array(
'name' => __( 'Small', 'beth2' ),
'size' => 12,
'slug' => 'small'
),
array(
'name' => __( 'Normal', 'beth2' ),
'size' => 16,
'slug' => 'normal'
),
array(
'name' => __( 'Large', 'beth2' ),
'size' => 36,
'slug' => 'large'
),
array(
'name' => __( 'Huge', 'beth2' ),
'size' => 50,
'slug' => 'huge'
)
) );
.has-huge-font-size {
font-size: 5rem;
}
.has-large-font-size {
font-size: 3.6rem;
}
.has-regular-font-size {
font-size: 1.6rem;
}
.has-small-font-size {
font-size: 1.2rem;
}
/* Disable custom colors */
add_theme_support( 'disable-custom-colors' );
/* Disable custom font sizes */
add_theme_support('disable-custom-font-sizes');
add_editor_style( 'style-editor.css' );
Do I need a starter js/editor.js file?
wp.domReady( () => {
wp.blocks.unregisterBlockStyle( 'core/button', 'default' );
wp.blocks.unregisterBlockStyle( 'core/button', 'outline' );
wp.blocks.unregisterBlockStyle( 'core/button', 'squared' );
wp.blocks.registerBlockStyle( 'core/button', {
name: 'cta',
label: 'Call to Action',
isDefault: true,
} );
wp.blocks.registerBlockStyle( 'core/button', {
name: 'sign-up',
label: 'Sign Up',
} );
wp.blocks.registerBlockStyle( 'core/button', {
name: 'see-more-link',
label: 'See More Link',
} );
} );