public_html/wp-content/themes/LocalTwo/functions.php
/**
	 * ============================================================================
	 * Sets up theme defaults and registers support for various WordPress features.
	 * ============================================================================
	 *
	 * Note that this function is hooked into the after_setup_theme hook, which
	 * runs before the init hook. The init hook is too late for some features, such
	 * as indicating support for post thumbnails.
	 */
Sets up theme defaults and registers support for various WordPress features.

Note that this function is hooked into the after_setup_theme hook, which
runs before the init hook. The init hook is too late for some features, such
as indicating support for post thumbnails.
Sets up theme defaults and registers support for various WordPress features . Note that this function is hooked into the after_setup_theme hook which runs before the init hook . The init hook is too late for some features such as indicating support for post thumbnails .
function divertheme_setup() {
		load_theme_textdomain( 'divertheme', get_template_directory() . '/languages' );
		add_theme_support( 'automatic-feed-links' );
		add_theme_support( 'title-tag' );
		add_theme_support( "post-thumbnails" );
		add_image_size( 'post-thumb', 848, 450, true );
		add_image_size( 'post-thumb-2', 320, 300, true );
		add_image_size( 'small-thumb', 120, 90, true );
		add_image_size( 'project-single', 1170, 600, true );
		register_nav_menus( array(
			'primary' => __( 'Primary Menu', 'divertheme' ),
			'social'  => __( 'Social Profile Links', 'divertheme' ),
		) );
		add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) );
		add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', ) );
		add_theme_support( 'custom-background', apply_filters( 'divertheme_custom_background_args', array(
			'default-color' => 'f7f7f7',
		) ) );
	}
function divertheme_setup ( ) { load_theme_textdomain ( 'divertheme' , get_template_directory ( ) . '/languages' ) ; add_theme_support ( 'automatic-feed-links' ) ; add_theme_support ( 'title-tag' ) ; add_theme_support ( " post-thumbnails " ) ; add_image_size ( 'post-thumb' , 848 , 450 , true ) ; add_image_size ( 'post-thumb-2' , 320 , 300 , true ) ; add_image_size ( 'small-thumb' , 120 , 90 , true ) ; add_image_size ( 'project-single' , 1170 , 600 , true ) ; register_nav_menus ( array ( 'primary' => __ ( 'Primary Menu' , 'divertheme' ) , 'social' => __ ( 'Social Profile Links' , 'divertheme' ) , ) ) ; add_theme_support ( 'html5' , array ( 'search-form' , 'comment-form' , 'comment-list' , 'gallery' , 'caption' , ) ) ; add_theme_support ( 'post-formats' , array ( 'aside' , 'image' , 'video' , 'audio' , 'quote' , 'link' , 'gallery' , ) ) ; add_theme_support ( 'custom-background' , apply_filters ( 'divertheme_custom_background_args' , array ( 'default-color' => 'f7f7f7' , ) ) ) ; }
Sets up theme defaults and registers support for various WordPress features.
Sets up theme defaults and registers support for various WordPress features .
/*
		 * Make theme available for translation.
		 * Translations can be filed in the /languages/ directory.
		 * If you're building a theme based on divertheme, use a find and replace
		 * to change 'divertheme' to the name of your theme in all the template files
		 */ // Add default posts and comments RSS feed links to head. /*
		 * Let WordPress manage the document title.
		 * By adding theme support, we declare that this theme does not use a
		 * hard-coded <title> tag in the document head, and expect WordPress to
		 * provide it for us.
		 */ /*
		 * Enable support for Post Thumbnails on posts and pages.
		 *
		 * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
		 */ // This theme uses wp_nav_menu() in one location. /*
		 * Switch default core markup for search form, comment form, and comments
		 * to output valid HTML5.
		 */ /*
		 * Enable support for Post Formats.
		 * See http://codex.wordpress.org/Post_Formats
		 */ // Setup the WordPress core custom background feature.