• Resolved maaniedo

    (@maaniedo)


    Hi! I have installed the plugin Yoast WordPress SEO. I tried adding the code below to template-page-full-width.php, page.php and single.php but no effect. Breadcrumbs are not displayed. What am I doing wrong? Please help.

    <?php if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);
    } ?>

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author sonalsinha21

    (@sonalsinha21)

    Hi,

    Not sure. Add this in body tag and not in header to make sure it displays. It should display no problem with theme of course.

    Homepage won’t show the breadcrumbs due to slider.

    Thread Starter maaniedo

    (@maaniedo)

    Hello! I am using the template Full Width(No Sidebar) on all of my pages. I added the code (bold), and now my template-page-full-width.php looks like this:

    <?php
    /*
    Template Name: Full Width(No Sidebar)
    */

    get_header(); ?>

    <div id=”content” class=”site-content container”>
    <main id=”main” class=”site-main” role=”main”>

    <div class=”blog-post”>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘content’, ‘page’ ); ?>

    <?php
    //If comments are open or we have at least one comment, load up the comment template
    if ( comments_open() || ‘0’ != get_comments_number() )
    comments_template();
    ?>

    <?php endwhile; // end of the loop. ?>

    </div><!– blog-post –>
    <div class=”clear”></div>
    </main><!– main –>
    </div><!– #content –>

      <?php if ( function_exists(‘yoast_breadcrumb’) ) {
      yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);
      } ?>

    <?php get_footer(); ?>

    But still, I cannot make the breadcrumb appear. Please help.

    Thanks!

    Thread Starter maaniedo

    (@maaniedo)

    It is working now. The above template-page-full-width.php works fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breadcrumbs from Yoast WordPress SEO’ is closed to new replies.