[Plugin: Yoast WP SEO] Where to paste breadcrumb code
-
Under the Breadcrumb Settings in Yoast WP SEO it states:
<start quote>
How to insert breadcrumbs in your themeUsage of this breadcrumbs feature is explained here. For the more code savvy, insert this in your theme (My added Reference to question 1 below):
<?php if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);
} ?>
<end quote>I followed the link to instructions at https://www.wpbeginner.com/plugins/how-to-install-and-setup-wordpress-seo-plugin-by-yoast/ . That site stated:
<start quote>
Lastly, this feature does not automatically add itself unless you are using Hybrid, Thesis, or Thematic. For other themes, you will have to add the following code in your loop (My added Reference to question 2 below):
<?php if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);
} ?>
<end quote>Once again, these instructions are woefully inadequate.
1) Insert this where in my theme?
2) Insert this where in the loop? Before the loop? After which line in the loop? At the end of the loop?Is it asking too much for the author of the instructions or docs (when they exist) to simply not generalize and skip over what they believe to be the obvious to them? We can’t read their minds!
- The topic ‘[Plugin: Yoast WP SEO] Where to paste breadcrumb code’ is closed to new replies.