Jump to content
Sign in to follow this  
szool

how to add breadcrumbs code to template

Recommended Posts

szool    0
szool

I am trying to install and configure the Yoast SEO plugin, breadcrumb feature. It says to install a snippet of code to my "theme's template". What file exactly do I need to add the code to? http://yoast.com/wordpress/breadcrumbs/ My site link is www.citizenmediagroup.com Thanks!!

Share this post


Link to post
Share on other sites
catrina    103
catrina

You need to add the code to the template where you want the breadcrumb navigation to show up (i.e. if you want it to show up in the header, add it to header.php)


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
szool    0
szool

I want it to show up right underneath the navigation menu.....

Share this post


Link to post
Share on other sites
szool    0
szool

Actually.... I would like them to show up on all pages except the home page if possible... there really is no need for breadcrumbs on the home page.

Share this post


Link to post
Share on other sites
Kate    3
Kate

Did you try adding it to the header.php file yet?

Share this post


Link to post
Share on other sites
szool    0
szool

I did and it ended up between the main nav and the subnav. How would I get it under the subnav?

Share this post


Link to post
Share on other sites
catrina    103
catrina

Where in the header.php file did you paste it? Can you add your header code here and add [ code ] preceding it and [ /code ] after it (without the spaces)?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
szool    0
szool

the breadcrumb code is at the very bottom of the header:

	<?php
		do_action('pagelines_before_html');
		global $pagelines_ID;
	?>
	
	>
	  
		
		<?php if(pagelines('favicon')):?><?php endif;?>
		<?php if(pagelines('touchicon')):?><?php endif;?>
	
	
		<?php
			global $bbpress_forum;
			if($bbpress_forum ):?>
				<?php bb_title() ?>
				<?php bb_feed_head(); ?>
				<?php bb_head(); ?>
				
		<?php else:?>
			<?php if(is_front_page()) { echo SITENAME; } else { wp_title(''); } ?>
		<?php endif;?>
	
	
	
		
		<?php if ( is_single() || is_page()) wp_enqueue_script( 'comment-reply' ); ?> 
		<?php  wp_enqueue_script("jquery"); ?>
	
	
		
		<?php get_template_part ('library/dynamic_css'); ?>
	
		
		<?php if((is_page_template('page-carousel.php') || is_page_template('page-carousel-full.php')) && VPRO) get_template_part ('core/inits/init_carousel');?>
	
		<?php if((is_page_template('page-feature.php') || is_page_template('page-feature-page.php') || (is_home() && pagelines('featureblog'))) && VPRO) get_template_part ('core/inits/init_feature');?>
	
		<?php if(pagelines('enable_drop_down') && VPRO) get_template_part ('core/inits/init_dropdown');?>
	
	<?php get_template_part ('library/_ie_fixes'); ?>
	
	
	  	<?php if(VPRO) get_template_part('library/_font_replacement');?>
		<?php if (pagelines('headerscripts')) echo pagelines('headerscripts');?>
	
		<?php wp_head(); ?>
	
	
	>
		<?php if (pagelines('asynch_analytics')) echo pagelines('asynch_analytics');?>
		
<?php if(pagelines('custom_header')):?> <?php bloginfo('name');?> <?php else:?>

<?php bloginfo('name');?>

<?php bloginfo('description');?>
<?php endif;?>
<?php if(pagelines('rsslink')):?> <?php endif;?> <?php if(VPRO):?> <?php if(pagelines('twitterlink')):?> <?php endif;?> <?php if(pagelines('facebooklink')):?> <?php endif;?> <?php if(pagelines('linkedinlink')):?> <?php endif;?> <?php if(pagelines('youtubelink')):?> <?php endif;?> <?php if(pagelines('myspacelink')):?> <?php endif;?> <?php endif;?>
<?php function nav_fallback(){?>
  • <?php wp_list_pages('sort_column=menu_order&depth=3&title_li='); ?>
<?php } if(function_exists( 'wp_nav_menu')):?> <?php wp_nav_menu( array('theme_location'=>'primary', 'menu_class' => 'mnav dropdown fix', 'container' => null, 'container_class' => '', 'depth' => 3, 'fallback_cb'=>'nav_fallback' ) ); ?> <?php else:?> <?php nav_fallback();?> <?php endif;?> <?php if(!pagelines('hidesearch')):?> <?php get_template_part ( 'library/_searchform'); ?> <?php else:?> <?php endif;?>
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb(' ',''); } ?>

Share this post


Link to post
Share on other sites
kastelic    6
kastelic

You could put it at the bottom of _subnav.php

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×