Hi
i’ve change show_home in class-breadcrumb.php line 189 but it doesn’t work
Can you help me please?
/* Set up the default arguments for the breadcrumb. */
$defaults = array(
‘separator’ => ‘»’,
‘before’ => ‘<span class=”breadcrumb-title”>’ . __( ‘You are here:’, ‘avia_framework’ ) . ‘</span>’,
‘after’ => false,
‘front_page’ => true,
‘show_home’ => __( ‘xxxx’, ‘avia_framework’ ),
‘echo’ => false,
‘show_categories’ => true,
‘show_posts_page’ => true,
‘truncate’ => 70,
‘richsnippet’ => false
);
Hey Lex2014,
Edit framework > php > class-breadcrumb.php , find this code:
‘show_home’ => __( ‘Home’, ‘avia_framework’ ),
Replace it with:
‘show_home’ => __( ‘shop’, ‘avia_framework’ ),
Best regards,
Jordan Shannon
Hi
thanks for your quick answer.
but I already tried this solution and it DOESEN’T WORK
Its the same situation
‘show_home’ => __( ‘Home’, ‘avia_framework’ ), replace home with other words
nothing’s change
Hi Lex2014 ,
Try using this code:
add_filter('avia_breadcrumbs_args', 'avia_change_home_breadcrumb', 10, 1);
function avia_change_home_breadcrumb($args){
$args['show_home'] = 'My Site';
return $args;
}
replace My Site with the text you want to use.
Best regards,
Nikko
Yeeeeeeaah!!!
This works!!! Thanks a lot Nikko ^_^
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon