Create breadcrumb using shortcode

<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">// Add Shortcode
function breadcrumbs() {
	// Code
	if(!is_home()) {
		echo '<divclass="breadcrumb">';
		echo '<a href="'.home_url('/').'">Home</a><span class="divider"> / </span>';
		if (is_category() || is_single()) {
			the_category(' <span class="divider"> / </span> ');
			if (is_single()) {
				echo ' <span class="divider"> / </span> ';
				the_title();
			}
		} elseif (is_page()) {
			echo the_title();
		}
		echo '</div>';
	}
}
add_shortcode( 'breadcrumbs', 'breadcrumbs' );</pre>