tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Top Navigation Menu', 'c9-work' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* * Adding Thumbnail basic support */ add_theme_support( 'post-thumbnails' ); /* * Adding support for Widget edit icons in customizer */ add_theme_support( 'customize-selective-refresh-widgets' ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); // Set up the WordPress Theme logo feature. add_theme_support( 'custom-logo', array( 'height' => '92', 'width' => '285', 'flex-height' => true, 'flex-width' => true ) ); add_theme_support( 'custom-background' ); add_theme_support( 'align-wide' ); // For the Block Editor. add_theme_support( 'editor-styles' ); //Apply empty stylesheet to visual editor to remove that doesn't work right yet for some reason. add_editor_style( get_template_directory() . '/editor-style.css'); add_theme_support( 'responsive-embeds' ); // C9 custom image sizes add_image_size( 'c9-feature-wide', 960, 411, array( 'center', 'center' ), true ); add_image_size( 'c9-feature-hd-wide', 1920, 1080, array( 'center', 'center' ), true ); add_image_size( 'c9-feature-large-wide', 1600, 465, array( 'center', 'center' ), true ); add_image_size( 'c9-feature-medium-wide', 960, 465, array( 'center', 'center' ), true ); add_image_size( 'c9-feature-medium-crop', 960, 411, true ); add_image_size( 'c9-feature-audio', 850, 400, array( 'center', 'center' ) ); add_image_size( 'c9-tiny-thumb', 120, 56, true ); } }