Theme options
// 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
add_theme_support( 'post-formats', array( 'gallery' ) );
// Add theme support for Featured Images
add_theme_support( 'post-thumbnails' );
// Add theme support for Custom Background
$background_args = array(
'default-color' => '',
'default-image' => '',
'default-repeat' => '',
'default-position-x' => '',
'wp-head-callback' => '',
'admin-head-callback' => '',
'admin-preview-callback' => '',
);
add_theme_support( 'custom-background', $background_args );
// Add theme support for document Title tag
add_theme_support( 'title-tag' );
}
// Hook into the 'after_setup_theme' action
add_action( 'after_setup_theme', 'custom_theme_features' );