Breadcrumb position
-
WordPress SEO version: 1.4.7
I inserted the yoast breadcrumb code in my theme and it shows up correct in my pages like so on this page with the breadcrumbs showing up right above the title.
But for my post it shows up wrong like on this post with the breadcrumbs showing up in the top right corner and not right above the title.
How can I get the breadcrumbs on my post to show up right above the title like how my pages are?
The code for my Single Post (single.php) is:
<?php get_header(); ?> <div id="content-inner" class="sidebar container-12 clearfix"> <div class="grid entry-list"> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?> <?php get_template_part('_loop','single'); ?> </div><!--/grid--> <?php get_sidebar(); ?> </div><!--/content-inner--> </div><!--/content--> <?php get_footer(); ?> And the code for my <strong>Page Template</strong> (page.php) is: <?php get_header(); ?> <div id="content"> <div id="content-inner" class="container-12 sidebar t-page clearfix"> <div class="grid entry-list"> <?php while(have_posts()): the_post(); ?> <article id="entry-<?php the_ID(); ?>" <?php post_class('entry'); ?>> <div class="entry-inner"> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?> <header> <h1 class="entry-title"><?php the_title(); ?></h1> </header> <div class="text clearfix"> <?php the_content(); ?> <div class="clear"></div> <?php edit_post_link(__('Edit','sprout'), ' · ', ''); ?> </div> <?php if(bandit::comments_enabled() || have_comments()): ?> <div id="entry-comments"> <?php comments_template(); ?> </div> <?php endif; ?> </div><!--/entry-inner--> </article> <?php endwhile;?> </div><!--/grid--> <?php get_sidebar(); ?> </div><!--/content-inner--> </div><!--/content--> <?php get_footer(); ?>
[Please use the code buttons]
Any help will be so much appreciated. All the best!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Breadcrumb position’ is closed to new replies.