Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

content

// Register Theme Features
function custom_theme_features()  {

	// Add theme support for Post Formats
	$formats = array( 'gallery', 'image', 'video', 'audio', );
	add_theme_support( 'post-formats', $formats );	
}

// Hook into the 'after_setup_theme' action
add_action( 'after_setup_theme', 'custom_theme_features' );