diff --git a/inc/Framework.php b/inc/Framework.php index c435cd17..ce7a9044 100644 --- a/inc/Framework.php +++ b/inc/Framework.php @@ -4,6 +4,7 @@ use BEA\Theme\Framework\Services\Acf; use BEA\Theme\Framework\Services\Assets; +use BEA\Theme\Framework\Services\Breadcrumb; use BEA\Theme\Framework\Services\Performance; use BEA\Theme\Framework\Services\Editor; use BEA\Theme\Framework\Services\Editor_Patterns; @@ -39,6 +40,7 @@ class Framework { Svg::class, Acf::class, Menu::class, + Breadcrumb::class, // Services as Tools Body_Class::class, diff --git a/inc/Services/Breadcrumb.php b/inc/Services/Breadcrumb.php new file mode 100644 index 00000000..1ddf76d0 --- /dev/null +++ b/inc/Services/Breadcrumb.php @@ -0,0 +1,76 @@ +', '', $link_output ); + } + + return $link_output; + } + + /** + * Remove the breadcrumbs separator outside the links. + * + * @return string + */ + public function remove_breadcrumb_separator(): string { + return ''; + } +}