Yoast Breadcrumbs Issue
-
Hi Ben …
Just updated to Tracks 1.44. Had a little problem with where you placed the Yoast Breadcums call in header.php. It was missing a php end tag
?>
& had to be moved within the last header div for it to be placed correctly on ALL pages. The way you have it now, it was okay on the home page, but to the far left on any post page & behind the featured image on smaller devices.Although I’m altering the look of
#breadcrumbs
via CSS I also made sure that it wasn’t my CSS causing the issue. Once I placed it IN the header div just below the primary menu, everything was fine.This is what my changed code looks like now:
<header id="site-header" class="site-header" role="banner"> <?php get_template_part( 'content/top-navigation' ); ?> <div class="container"> <div id="title-info" class="title-info"> <?php get_template_part( 'logo' ) ?> </div> <?php get_template_part( 'menu', 'primary' ); ?> <?php if ( function_exists( 'yoast_breadcrumb' ) ) { yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' ); } ?> </div> </header> <div id="main" class="main" role="main">
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Yoast Breadcrumbs Issue’ is closed to new replies.