Yoast SEO breadcrumbs

Hi,

Could you please check this out and give your advice:

Cheers,
Ehsan

Dear Ehsan,

Try to insert the following code in the header.php file. Put it at the most bottom line.


<?php 
if ( !is_front_page() && function_exists('yoast_breadcrumb') ){
	yoast_breadcrumb('<p id="breadcrumbs">','</p>');
}
?>

You should pass it the child theme. Otherwise the code addition will be lost as the theme gets updated in the future.

Regards,
Kharis

Thank you dear Kharis,

I’m new to use child theme, could you please learn how can we echo parent PHP file in child them?

Thank you in advance,
Ehsan

Dear Ehsan,

Please follow the following resources:

Regards,
Kharis