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.
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!
It is working now. The above template-page-full-width.php works fine.