Breadcrumbs

I was wondering if you support breadcrumbs without external plugins. I activated breadcrumbs in Yoas SEO and can see it in design -> customize, but the site itself does not change.

Hello there,

We don’t have plan to implement breadcrumbs in the theme’s code at the moment. There are many plugins that do so out there.

To display the Yoast SEO breadcrumb, you should insert the breadcrumb function into the template file. See the documentation. If you want to display it after the site header area, you should add the following function into the child theme’s functions.php file or you can use the Code Snippets plugin.


add_action('tha_content_before', 'prefix_display_yoast_breadcrumb');
function prefix_display_yoast_breadcrumb(){

	if ( function_exists('yoast_breadcrumb') ) {
		if(is_front_page()){
			return;
		}		
		echo '<div class="container">';
			yoast_breadcrumb('<p id="breadcrumbs">','</p>');
		echo '</div>';
	}

}

Regards,
Kharis

That works perfectly, thank you very much.

You are always welcome here.

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis