Loading...
Bootscore 6.4 is here! Learn more

Blog

Bootscore 6.4.0

Bootscore 5.4

Version 6.4 adds WooCommerce product filter block support, refactors the breadcrumb, introduces shortcode support for menu items and minor UI improvements.

Woo product filter block

Bootscore 6.4 now supports the WooCommerce Product Filter block. It can be added to the shop sidebar and is visible on shop archive pages.

This allows customers to filter products by categories, attributes, price, and more using WooCommerce’s native block-based filtering tools.

The breadcrumb has been completely refactored in Bootscore 6.4. It now supports pages, posts, WooCommerce content, any custom post type and includes a shortcode to display it wherever you want.

The new breadcrumb also replaces the default WooCommerce breadcrumb, providing a consistent navigation experience across your entire website.

Use simple action hooks to add the breadcrumb to pages:

/**
 * Hook breadcrumb to 'page-full-width-image.php'
 */
function hook_breadcrumb_to_page_full_width_image( $location ) {
  if ( $location === 'page-full-width-image' ) {
    the_breadcrumb();
  }
}
add_action( 'bootscore_after_featured_image', 'hook_breadcrumb_to_page_full_width_image'); 


/**
 * Hook breadcrumb to all page, archive and search templates
 */
function hook_breadcrumb_to_pages_archive_search( $location ) {
  if ( $location === 'archive' || $location == 'search' || $location == 'page' || $location == 'page-sidebar-left' || $location == 'page-sidebar-none') {
    the_breadcrumb();
  }
}
add_action( 'bootscore_after_primary_open', 'hook_breadcrumb_to_pages_archive_search'); 

Support for Custom Post Types

You can hook into the breadcrumb system to add support for your own custom post types. This allows you to fully control breadcrumb output for CPT archives and single views.

For a practical example, see the WooCommerce breadcrumb implementation.

// Add CPT handler
function my_cpt_breadcrumb_handler($handled) {
  if (is_singular('my_cpt')) {
    // Your custom breadcrumb logic
    return true; // Mark as handled
  }
  return $handled;
}
add_filter('bootscore/breadcrumb/handler', 'my_cpt_breadcrumb_handler', 15, 1);

WooCommerce

The default WooCommerce template override has been removed and replaced by the new Bootscore breadcrumb.

If you have an overridden woocommerce.php file in your child theme, replace:

<?php woocommerce_breadcrumb(); ?>

with:

<?php the_breadcrumb(); ?>

Shortcode

The breadcrumb now also supports a shortcode, allowing you to display it anywhere within your content. This is especially useful in custom layouts such as the page-blank template.

[bs-breadcrumb]

Shortcode Support in Menu Items

You may have noticed the GitHub stars badge Stars on GitHub 886 in the navbar. While it looks like a widget, it’s is a menu-item inserted via shortcode.

Shortcodes are now supported in menu-items. This makes it easy to add dynamic or reusable elements directly into navigation menus, such as language switchers, small counters, or other lightweight components.

By the way, if you haven’t starred the project yet, now is a good time

New contributors

  • yurii-shchur – thank you for improving polish translation
  • amansarwar – thank you for fixing the broken <ol> in product description

What else?

  • Font Awesome 7.2
  • Preparing for the upcoming WooCommerce 11
  • Tag badges (see below) now include an icon for improved visual consistency. The icon can be easily changed via a filter as usual.

Have a great day!