Yoast breadcrumbs – adding PHP to a template
-
Hello,
I recently installed Yoast SEO for WordPress on my Twentyeleven child theme. I am trying to activate Yoast’s in-built Breadcrumb feature but am having trouble.
I see that Yoast outlines some php and and asks users to insert it in their ‘single.php’ so that the breadcrumb menu appears just below the main nav bar.
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>');My question is…
Can this php go anywhere in the ‘single.php’ or does it have to go in a specific place. I have managed to get it working, however, this result just came from dumping the code in a random place Example of breadcrumbs on my site’s ‘single.php’
The topic ‘Yoast breadcrumbs – adding PHP to a template’ is closed to new replies.