tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page. add_theme_support( 'post-thumbnails' ); // Remove WordPress version from header for security concern remove_action( 'wp_head', 'wp_generator' ); // This theme uses wp_nav_menu() in header menu location. register_nav_menu( 'primary', __( 'Primary Menu', 'cleanretina' ) ); // Add Clean Retina custom image sizes add_image_size( 'featured', 700, 290, true); add_image_size( 'featured-medium', 330, 330, true); add_image_size( 'slider', 962, 390, true); // used on Featured Slider on Homepage Header add_image_size( 'gallery', 330, 230, true); // used to show gallery all images /** * This theme supports custom background color and image */ add_theme_support( 'custom-background' ); // Adding excerpt option box for pages as well add_post_type_support( 'page', 'excerpt' ); } /** * cleanretina_init hook * * Hooking some functions of functions.php file to this action hook. */ do_action( 'cleanretina_init' ); ?>