Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

JWSS Title

// Add Shortcode
function title( $atts , $content = null ) {

	// Attributes
	extract( shortcode_atts(
		array(
			'size' => 'big',
		), $atts )
	);

	// Code
if ($size == "big") {
return '<h1>' . $content . '</h1>';
} elseif ($size == "small") {
return '<h1 class="small">' . $content . '</h1>';
}
}
add_shortcode( 'title', 'title' );