Forums

[Plugin: Yoast WP SEO] Where to paste breadcrumb code (1 post)

  1. WebAuthor5555
    Member
    Posted 4 months ago #

    Under the Breadcrumb Settings in Yoast WP SEO it states:
    <start quote>
    How to insert breadcrumbs in your theme

    Usage 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 http://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!

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 4 months ago by WebAuthor5555
  • This topic is not resolved
  • WordPress version: 3.3.1