Yoast breadcrumbs no separator

I was working on a project where I wanted to use WordPress Yoast SEO plugin breadcrumbs, but don’t wanted to use a string separator. I wanted to style <span>’s in the breadcrumb with a right CSS border radius.

I wrote this hook to remove the seperator:

// Filter hook Yoast seo breadcrumbs no seperator
function no_separator( $output ) {
 $replace = array( '&raquo;' );
 $output = str_replace( $replace, '', $output );
 return $output;
add_filter('wpseo_breadcrumb_single_link_with_sep', 'no_separator');




WordPress show admin bar only for Admin

In some situations it is helpful to don’t show the WordPress admin bar to all the user types. By adding the following code to your function.php, the admin bar only shows up when your logged in as Administrator.

// show admin bar only for admins
if (!current_user_can('manage_options')) {
 add_filter('show_admin_bar', '__return_false');