Ready to get started?Download WordPress


WordPress SEO by Yoast
Twitter Bootstrap Breadcrumbs (1 post)

  1. imFORZA
    Posted 2 years ago #

    I have a theme using twitter bootstrap, and I setup yoast to match the styling with this snippet of code:

    <!-- Enable Yoast Breadcrumbs (boostrap) -->
    <?php if ( function_exists('yoast_breadcrumb') ) {
    	$breadcrumbs = yoast_breadcrumb( '<ul class="breadcrumb"><li>', '</li></ul>', false );
    	echo str_replace( '|', ' <span class="divider">/</span></li><li>', $breadcrumbs );
    } ?>

    The default Divider in Bootstrap is the following:
    <span class="divider">/</span>

    But this needs to get set within the wordpress admin panel. I was wondering if I could automatically set this via functions.php?


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic