Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] Duplicate breadcrumbs appear with manual insertion (6 posts)

  1. guswhite
    Posted 4 years ago #

    WordPress version: 3.4.1
    WordPress SEO version: 1.2.5
    Thematic 1.0.2

    I just updated to WP SEO 1.2.5 and now my breadcrumbs appear in two places. I am using the code
    <?php if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb('<p id="breadcrumbs">','</p>');
    } ?>

    to insert the code in my child theme which has been working fine.

    Now it appears the breadcrumbs are also inserted into a div with the id of "wpseobreadcrumb".

    Should I be using different code to manually insert the breadcrumbs since the update?


  2. Joost de Valk
    Plugin Author

    Posted 4 years ago #

    Hmm no, I've made it auto insert breadcrumbs in this update, but it's rather annoying :D I'll just disable that feature in the next update, for now, delete this line:

    add_action( 'thematic_abovecontent', array( $this, 'breadcrumb_output' ), 10, 1 );

    in class-breadcrumbs.php

  3. guswhite
    Posted 4 years ago #

    Thanks for the quick response and the info Joost, just what I needed to know! Fantastic plug in, thanks for all your hard work.

  4. Joost de Valk
    Plugin Author

    Posted 4 years ago #

    You can try the development version if you want, that should work "normally". You can download the development version from here, or you can download it directly here.

  5. ckrauskopf
    Posted 4 years ago #

    Was having the same problem, so thanks for the quick support but also plus one for not auto-inserting the breadcrumbs by default in future versions.

    I'm using Thesis Theme for the site in question and I wanted them inserted on a different hook (not 'thesis_hook_before_headline'). I inserted the breadcrumb function in a different place and I was getting two versions of breadcrumbs on every page.

    For now I commented out the add_action( 'thesis_hook_before_headline', array( $this, 'breadcrumb_output' ), 10, 1 ); in class-breadcrumb.php, and everything is working again.

    That said, it would be much appreciated it if the next plugin version has a setting to disable auto-insertion so I don't have to keep modifying core plugin files every update.

    Thanks for your great work Joost!

  6. ross.edman
    Posted 4 years ago #

    I was having the same problem. Thanks for the fix. This was also throwing multiple W3C errors on search result pages because of the multiple ID use.

    I am using Thesis as well, and the above fix by ckrauskopf worked great.

    I also agree. Disable auto-insertion would be great on next release as well as a more documented way to control the output for styling and applying classes, IDs, etc.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic