Forum Replies Created
-
AuthorPosts
-
raisethebarrMember
cool thanks
raisethebarrMemberIt's interesting because without making the code edits and just enabling breadcrumbs in the wordpress seo plugin inferface the categories show up in the breadcrumbs for pages that don't have a parent page
raisethebarrMemberHmm not having any luck tried both suggestions. This is what the code looks like in the functions.php file for the parent theme:
//* Reposition the breadcrumbs
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_breadcrumbs' );//* Customize breadcrumbs display
add_filter( 'genesis_breadcrumb_args', 'streamline_breadcrumb_args' );
function streamline_breadcrumb_args( $args ) {
$args['home'] = __( 'Home', 'streamline' );
$args['sep'] = ' ';
$args['list_sep'] = ', '; // Genesis 1.5 and later
$args['prefix'] = '<div class="breadcrumb">';
$args['suffix'] = '</div>';
$args['labels']['prefix'] = '<span class="icon-home"></span>';
return $args;
}I tried adding in between the above code but it didn't work:
add_action( 'loop_start', 'wordpress_seo_plugins_breadcrumbs' );
function wordpress_seo_plugins_breadcrumbs() {
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('<p id="breadcrumbs">','</p>');
}
}raisethebarrMemberThank you 🙂
-
AuthorPosts