byd_theme_support
// Set content width value based on the theme's design
if ( ! isset( $content_width ) )
$content_width = 85%;
// Register Theme Features
function byd_custom_theme_features() {
// Add theme support for Featured Images
add_theme_support( 'post-thumbnails' );
// Set custom thumbnail dimensions
set_post_thumbnail_size( 200, 200, true );
// Add theme support for Custom Background
$background_args = array(
'default-color' => '',
'default-image' => 'defaultbackground.png',
'default-repeat' => 'none',
'default-position-x' => 'top',
'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' => 'fantasiesbydesign.com/logoa.png',
'width' => 0,
'height' => 200,
'flex-width' => true,
'flex-height' => false,
'uploads' => false,
'random-default' => false,
'header-text' => false,
'default-text-color' => '',
'wp-head-callback' => '',
'admin-head-callback' => '',
'admin-preview-callback' => '',
'video' => false,
'video-active-callback' => '',
);
add_theme_support( 'custom-header', $header_args );
// Add theme support for document Title tag
add_theme_support( 'title-tag' );
}
add_action( 'after_setup_theme', 'byd_custom_theme_features' );