Theme Features
// Set content width value based on the theme's design
if ( ! isset( $content_width ) )
$content_width = 660;
// Register Theme Features
function custom_theme_features() {
// Add theme support for Automatic Feed Links
add_theme_support( 'automatic-feed-links' );
// Add theme support for Post Formats
$formats = array( 'status', 'quote', 'gallery', 'image', 'video', 'audio', 'link', 'aside', 'chat', );
add_theme_support( 'post-formats', $formats );
// Add theme support for Featured Images
add_theme_support( 'post-thumbnails' );
// Set custom thumbnail dimensions
set_post_thumbnail_size( 660, 400, true );
// Add theme support for Translation
load_theme_textdomain( 'text_domain', get_template_directory() . '/language' );
}
// Hook into the 'after_setup_theme' action
add_action( 'after_setup_theme', 'custom_theme_features' );