Yoast SEO
[Plugin: WordPress SEO by Yoast] Twitter Bootstrap Breadcrumbs (1 post)

  1. imFORZA
    Posted 3 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

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic