Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Theme Support

// Set content width value based on the theme's design
if ( ! isset( $content_width ) )
	$content_width = 960;

if ( ! function_exists('forever_yours_theme_features') ) {

// Register Theme Features
function forever_yours_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( 'quote', 'gallery', 'image', 'video' ) );

	// Add theme support for Featured Images
	add_theme_support( 'post-thumbnails' );

	// Add theme support for Custom Background
	$background_args = array(
		'default-color'          => '000000',
		'default-image'          => 'get_template_directory_uri() .'/img/bg.jpg'',
		'default-repeat'         => 'repeat',
		'default-position-x'     => 'top left',
		'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', 'forever_yours_theme_features' );

}