tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'menu-1' => esc_html__( 'Primary', 'business-way-lite' ), 'menu-footer' => esc_html__( 'Footer', 'business-way-lite' ), ) ); /* * 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 theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); // Add support for Custom Header. add_theme_support( 'custom-header', apply_filters( 'business_way_custom_header_args', array( 'default-image' => get_template_directory_uri() . '/images/default-banner.png', 'width' => 1920, 'height' => 500, 'flex-height' => true, 'header-text' => false, ) ) ); // Register default headers. register_default_headers( array( 'business-way' => array( 'url' => '%s/images/default-banner.png', 'thumbnail_url' => '%s/images/default-banner.png', 'description' => esc_html_x( 'Business Way', 'header image description', 'business-way-lite' ), ), ) ); } endif; add_action( 'after_setup_theme', 'business_way_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function business_way_content_width() { $GLOBALS['content_width'] = apply_filters( 'business_way_content_width', 640 ); } add_action( 'after_setup_theme', 'business_way_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function business_way_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Primary Sidebar', 'business-way-lite' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here to appear in your primary sidebar.', 'business-way-lite' ), 'before_widget' => '', 'before_title' => '