tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Block Editor Support */ add_theme_support( "align-wide" ); add_theme_support( "responsive-embeds" ); add_theme_support( "wp-block-styles" ); add_theme_support( 'custom-line-height' ); /* * Enable support for custom logo. * * @since executive 1.0.0 */ add_theme_support( 'custom-logo', array( 'height' => 60, 'width' => 154, 'flex-height' => true, 'flex-width' => true, ) ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size( 'executive-portfolio-img', 1024, 690, true ); add_image_size( 'executive-portfolio-image', 480, 360, true ); add_image_size( 'executive-featured-entry-img', 470, 529, true ); add_image_size( 'executive-single-img', 1920, 600, true ); add_image_size( 'executive-front-featured', 480, 360, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Main Menu', 'executive' ), 'social' => __( 'Social Menu', 'executive' ), 'footer' => __( 'Footer Menu', 'executive' ), ) ); /* * 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', ) ); // Add excerpts to pages add_post_type_support( 'page', 'excerpt' ); } endif; // executive_setup add_action( 'after_setup_theme', 'executive_setup' ); /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function executive_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'executive' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'executive' ), 'before_widget' => '
', 'before_title' => '