I’ve bought the Yoast search engine optimisation Premium plugin earlier this 12 months, however I wasn’t ready to determine easy methods to allow breadcrumbs till a number of days in the past. At first I believed I had so as to add blocks to each web page and submit, and I believed that might be extremely tedious, till I discovered this article.
Since I used to be already utilizing the Twentytwentyone theme, I made a decision so as to add the code to its header.php
file.
<?php
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}
?>
After I went to reload the location to see if the breadcrumbs confirmed up, I acquired a important error, so I went into my log and noticed this error.
[Sun Oct 03 02:32:59.026295 2021] [php7:error] [pid 8225] [client 172.68.133.221:44594] PHP Deadly error: Uncaught Error: Name to undefined operate xc2xa0xc2xa0yoast_breadcrumb() in /var/www/html/sensation-experience.com/public_html/wp-content/themes/twentytwentyone/header.php:35nStack hint:n#0 /var/www/html/sensation-experience.com/public_html/wp-includes/template.php(770): require_once()n#1 /var/www/html/sensation-experience.com/public_html/wp-includes/template.php(716): load_template(‘/var/www/html/s…’, true, Array)n#2 /var/www/html/sensation-experience.com/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)n#3 /var/www/html/sensation-experience.com/public_html/wp-content/themes/twentytwentyone/web page.php(12): get_header()n#4 /var/www/html/sensation-experience.com/public_html/wp-includes/template-loader.php(106): embody(‘/var/www/html/s…’)n#5 /var/www/html/sensation-experience.com/public_html/wp-blog-header.php(19): require_once(‘/var/www/html/s…’)n#6 /var/www/html/sensation-experience.com/public_html/index.php(17): require(‘/var/www/html/s…’)n#7 {most important}n thrown in /var/www/html/sensation-experience.com/public_html/wp-content/themes/twentytwentyone/header.php on line 35, referer: https://www.sensation-experience.com/
From what it appears to be like like, there appears to be one thing happening between the Yoast plugin and the theme, however I am undecided what it could possibly be.