tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /** * Theme Options Defaults */ require( get_template_directory() . '/inc/panel/adventurous-theme-options-defaults.php' ); /** * Custom Theme Options */ require( get_template_directory() . '/inc/panel/adventurous-theme-options.php' ); /** * Custom functions that act independently of the theme templates */ require( get_template_directory() . '/inc/adventurous-functions.php' ); /** * Slider Function */ require( get_template_directory() . '/inc/adventurous-slider.php' ); /** * Headlines Function */ require( get_template_directory() . '/inc/adventurous-promotion-headlines.php' ); /** * Featured Content Function */ require( get_template_directory() . '/inc/adventurous-featured-content.php' ); /** * Metabox */ require( get_template_directory() . '/inc/adventurous-metabox.php' ); /** * Custom template tags for this theme. */ require( get_template_directory() . '/inc/adventurous-template-tags.php' ); /** * Register Sidebar and Widget. */ require( get_template_directory() . '/inc/adventurous-widgets.php' ); // This theme allows users to set a custom background. add_theme_support( 'custom-background', array( // Let WordPress know what our default background color is. 'default-color' => 'f9f9f9', ) ); /** * This feature enables custom-menus support for a theme. * @see http://codex.wordpress.org/Function_Reference/register_nav_menus */ register_nav_menus(array( 'primary' => __( 'Header Right Menu', 'adventurous' ), 'secondary' => __( 'Header Secondary Menu', 'adventurous' ) ) ); /** * Custom Menus Functions. */ require( get_template_directory() . '/inc/adventurous-menus.php' ); /** * Add support for the Aside Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio' ) ); /** * This feature enables Jetpack plugin Infinite Scroll */ add_theme_support( 'infinite-scroll', array( 'type' => 'click', 'container' => 'content', 'footer_widgets' => array( 'sidebar-2', 'sidebar-3', 'sidebar-4' ), 'footer' => 'page' ) ); /** * Enable support for Post Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size( 'slider', 1600, 600, true); //Featured Post Slider Image add_image_size( 'featured', 800, 324, true); //Featured Image add_image_size( 'small-featured', 400, 267, true); //Small Featured Image } endif; // adventurous_setup add_action( 'after_setup_theme', 'adventurous_setup' ); /** * Implement the Custom Header feature */ require( get_template_directory() . '/inc/adventurous-custom-header.php' );