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' ); add_image_size( 'fitness-one-category-thumb', 392, 261, true ); // Homepage blog Images add_image_size( 'fitness-one-slider-thumb', 1920, 1080, true ); // slider Images add_image_size( 'fitness-one-portfolio-thumb', 292, 219, true ); // portfolio Images add_image_size( 'fitness-one-team-thumb', 222, 278, true ); // team Images add_image_size( 'fitness-one-blog-thumb', 307, 230, true ); // blog Images // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary', 'fitness-one' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'comment-list', 'gallery', 'caption', ) ); add_theme_support( 'custom-logo', array( 'height' => 45, 'width' => 200, 'flex-height' => true, 'flex-width' => true, ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'fitness_one_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; add_action( 'after_setup_theme', 'fitness_one_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 fitness_one_content_width() { $GLOBALS['content_width'] = apply_filters( 'fitness_one_content_width', 640 ); } add_action( 'after_setup_theme', 'fitness_one_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function fitness_one_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'fitness-one' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'fitness-one' ), 'before_widget' => '
', 'before_title' => ' ', ) ); register_sidebar( array( 'name' => esc_html__( 'fitness-one Contact Info Sidebar', 'fitness-one' ), 'id' => 'contact-info', 'description' => esc_html__( 'Add fitness-one Contact Info Widget here.', 'fitness-one' ), 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', ) ); register_sidebar( array( 'name' => esc_html__( 'fitness-one Homepage Newsletter', 'fitness-one' ), 'id' => 'newsletter', 'description' => esc_html__( 'Add Newssletter here.', 'fitness-one' ), 'before_widget' => '