• Resolved trishahdee

    (@trishahdee)


    Here is the page code that is generated for my client’s breadcrumb. As you can see the spans are nested instead of closing after each one. Also, there are too many </span>.

    <div id=”breadcrumbs”>
    <span xmlns:v=”http://rdf.data-vocabulary.org/#”><span typeof=”v:Breadcrumb”>Home »
    <span rel=”v:child” typeof=”v:Breadcrumb”>Musings »
    <span rel=”v:child” typeof=”v:Breadcrumb”>Radio »
    <span class=”breadcrumb_last”>Advice for the New York Advertising Community!
    </span>
    </span>
    </span>
    </span>
    </span>
    </div>

    This is the code I’m using to add the breadcrumb to the site:

    <?php
    if ( !is_front_page() ) {
    yoast_breadcrumb('<div id="breadcrumbs">','</div>');
    }
    ?>
    • This topic was modified 6 years ago by trishahdee.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    You can refer to this KB article on how to implement Yoast SEO’s breadcrumbs — https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/

    We can’t offer support on custom code (needed to change (core) features of our plugin). Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

Viewing 1 replies (of 1 total)
  • The topic ‘Nested Breadcrumb spans’ is closed to new replies.