Ok so the problem at hand is that I am trying to filter the way that the function breadcrumb_trail gets the home link...
I know how to filter and add text or remove and also add shortcode but just can't get my head around this one
I am already filtering the breadcrumb_trail to remove the Browse like so
add_filter('breadcrumb_trail', 'creative_breadcrumb_trail');
function creative_breadcrumb_trail($breadcrumb) {
$breadcrumb = str_replace('Browse:', '', $breadcrumb);
return $breadcrumb;
}
I would like to change
Taken from around breadcrumb-trail.php line:67
$trail[] = '<a href="' . get_bloginfo('url') . '" title="' . get_bloginfo( 'name' ) . '" rel="home" class="trail-begin">' . $show_home . '</a>';
to
$trail[] = '<a href="' . get_bloginfo('url', 'display') . '" title="' . get_bloginfo( 'name' ) . '" rel="home" class="trail-begin">' . $show_home . '</a>';
something along the lines of
add_filter('breadcrumb_trail', 'creative_breadcrumb_home_trail');
function creative_breadcrumb_home_trail($trail) {
$trail = '<a href="' . get_bloginfo('url', 'display') . '" title="' . get_bloginfo( 'name' ) . '" rel="home" class="trail-begin">' . $show_home . '</a>';
return $trail;
}
But obviously this does not work.....
I have tried all sorts of gimmickry before posting here and wonder if anybody can help....
and stop giggling :) You know who you r...
Any help gratefully received as usual