240, 'width' => 240, 'flex-height' => true, ) ); add_theme_support( 'custom-background', array( 'default-color' => 'ffffff' ) ); // Add support for Block Styles. add_theme_support( 'wp-block-styles' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); add_filter('use_widgets_block_editor', '__return_false'); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', 'navigation-widgets', ) ); // Add support for responsive embedded content. add_theme_support( 'responsive-embeds' ); } endif; // bizbloom_setup add_action( 'after_setup_theme', 'bizbloom_setup' ); function bizbloom_scripts() { wp_enqueue_style( 'bizbloom-basic-style', get_stylesheet_uri() ); wp_enqueue_style( 'bizbloom-style', get_template_directory_uri().'/assets/css/main.css' ); wp_enqueue_script('jquery'); wp_enqueue_script('bizbloom-main', get_template_directory_uri() . '/assets/js/main.js', array(), true); } add_action( 'wp_enqueue_scripts', 'bizbloom_scripts' ); /** * Use front-page.php when Front page displays is set to a static page. * * * @param string $template front-page.php. * * @return string The template to be used: blank if is_home() is true (defaults to index.php), else $template. */ function bizbloom_home_page_template( $template ) { return is_home() ? '' : $template; } add_filter( 'homepage_template', 'bizbloom_home_page_template' ); // Block Patterns. require get_template_directory() . '/block-patterns.php'; add_filter('use_widgets_block_editor', '__return_false'); function bizbloom_custom_excerpt_length( $length ){ if ( ! is_admin() ) { // Check if not in the admin area return 28; // Set your desired excerpt length here } return $length; // Use the default excerpt length in the admin area } add_filter('excerpt_length','bizbloom_custom_excerpt_length'); function bizbloom_register_block_styles() { // Register a custom style for the core/heading block register_block_style( 'core/heading', array( 'name' => 'bizbloom-heading-style', 'label' => __('Bizbloom Heading Style', 'bizbloom'), ) ); // Register additional block styles here as needed } add_action( 'init', 'bizbloom_register_block_styles' );