Hi,
1.how can i change the title for link in breadcrumb bar?
2. how to remove “Archive for category:” on this page?
links and screenshots in Private
Hey!
Add the following at the very end of your theme / child theme functions.php file:
add_filter('avf_title_args', 'change_title_for_Archives', 10, 1);
function change_title_for_archives($args) {
if(is_archive()){
$args['title'] = get_queried_object()->name;
$args['heading'] = "h2";
}
if(is_singular('post')){
$args['title'] = "Something";
}
return $args;
}
Cheers!
Josue
and how to change the title for the link and remove “Permanent Link: ” from it ?
Hi!
I’m not seeing any “Permanent Link” on the pages but if you want to control the link you can do it this way:
add_filter('avf_title_args', 'change_title_for_Archives', 10, 1);
function change_title_for_archives($args) {
if(is_archive()){
$args['title'] = get_queried_object()->name;
$args['heading'] = "h2";
$args['link'] = "http://google.com";
}
if(is_singular('post')){
$args['title'] = "Something";
$args['link'] = "http://google.com";
}
return $args;
}
Regards,
Josue
Hi,
Open functions-enfold.php and look for line 307:
if(!empty($link)) $title = "<a href='".$link."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".esc_attr( $title )."' $markup>".$title."</a>";
Replace it by this:
if(!empty($link)) $title = "<a href='".$link."' rel='bookmark' title='".esc_attr( $title )."' $markup>".$title."</a>";
Regards,
Josue
i did, but nothing changes
Hi,
It worked on my end, can you please create me an administrator account? post it here as a private reply.
Regards,
Josue