Make sure widgets are dead

This commit is contained in:
Tetrakern 2023-08-15 18:24:14 +02:00
parent 832e05ec07
commit 5e746bcc2d

View File

@ -103,6 +103,12 @@ function fictioneer_theme_setup() {
// Remove block patterns
remove_theme_support( 'core-block-patterns' );
// Remove widget support...
if ( get_option( 'fictioneer_disable_all_widgets' ) ) {
remove_theme_support( 'widgets' );
remove_theme_support( 'widgets-block-editor' );
}
// Add new size for cover images used on story pages
add_image_size( 'cover', 400 );