thema supports
if ( ! function_exists('custom_theme_features') ) {
// Register Theme Features
function custom_theme_features() {
global $wp_version;
// Add theme support for Post Formats
$formats = array( 'gallery', 'image', 'video', 'audio', 'link', );
add_theme_support( 'post-formats', $formats );
// Add theme support for Featured Images
add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
// Add theme support for Custom Background
$background_args = array(
'default-color' => '#FFF',
'default-image' => 'get_stylesheet_directory_uri() . '/img/header.jpg'',
'wp-head-callback' => '',
'admin-head-callback' => '',
'admin-preview-callback' => '',
);
add_theme_support( 'custom-background', $background_args );
// Add theme support for Custom Header
$header_args = array(
'default-image' => 'get_stylesheet_directory_uri() . '/imagens/header.jpg'',
'width' => 1065,
'height' => 400,
'flex-width' => true,
'flex-height' => true,
'random-default' => false,
'header-text' => true,
'default-text-color' => 'silver',
'uploads' => true,
'wp-head-callback' => '',
'admin-head-callback' => '',
'admin-preview-callback' => '',
);
add_theme_support( 'custom-header', $header_args );
}
// Hook into the 'after_setup_theme' action
add_action( 'after_setup_theme', 'custom_theme_features' );
}