Title: Bootstrap support?
Last modified: November 11, 2018

---

# Bootstrap support?

 *  [parakeet](https://wordpress.org/support/users/parakeet/)
 * (@parakeet)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/bootstrap-support-2/)
 * How can I ensure Breadcrumb NavXT outputs code compliant with [Bootstrap 4’s Breadcrumb definition](https://getbootstrap.com/docs/4.0/components/breadcrumb/)?
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Havlik](https://wordpress.org/support/users/mtekk/)
 * (@mtekk)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/bootstrap-support-2/#post-10869912)
 * You’ll need to use something like the following for your calling code:
 *     ```
       <?php if(function_exists('bcn_display_list')):?>
       <nav class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/" aria-label="breadcrumb">
       	<ol class="breadcrumb">
       		<?php bcn_display_list();?>
       	</ol>
       </nav>
       <?php endif; ?>
       ```
   
 * Additionally, you will need something like the following in a site specific plugin:
 *     ```
       add_filter('bcn_display_attributes', my_display_attributes_filter, 10, 3);
       function my_display_attributes_filter($attribs, $types, $id)
       {
       	$attribs .= ' class="breadcrumb-item';
       	//For the current item we need to add a little more info
       	if(is_array($types) && in_array('current-item', $types))
       	{
       		$attribs .= ' active" aria-current="page"';
       	}
       	else
       	{
       		$attribs .= '"';
       	}
       }
       ```
   
 * Note that I have not tested the above code yet (it’s taken from an article I’m
   writing on this subject). In theory it should work, but there may be the minor
   syntax error or logic goof on my part. Also, while looking into this, I’m not
   exactly thrilled with the `bcn_display_attributes` filter and I’m looking at 
   improving that so it (or its replacement) is easier to use for Breadcrumb NavXT
   6.3.0.
    -  This reply was modified 7 years, 7 months ago by [John Havlik](https://wordpress.org/support/users/mtekk/).
 *  Thread Starter [parakeet](https://wordpress.org/support/users/parakeet/)
 * (@parakeet)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/bootstrap-support-2/#post-10870508)
 * Thanks, I will give it a try.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bootstrap support?’ is closed to new replies.

 * ![](https://ps.w.org/breadcrumb-navxt/assets/icon.svg?rev=1927103)
 * [Breadcrumb NavXT](https://wordpress.org/plugins/breadcrumb-navxt/)
 * [Support Threads](https://wordpress.org/support/plugin/breadcrumb-navxt/)
 * [Active Topics](https://wordpress.org/support/plugin/breadcrumb-navxt/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breadcrumb-navxt/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breadcrumb-navxt/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [parakeet](https://wordpress.org/support/users/parakeet/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/bootstrap-support-2/#post-10870508)
 * Status: not resolved