Tagged: blog title, enfold
Hi
i would like to change the general title of the blogs
from “Blog – Latest News” into “Training Blog”.
How can i manage that?
Thanks in advance for support.
Hey heufti65!
Thank you for using our theme.
Add following code to the bottom of functions.php:
add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
function fix_single_post_title($args,$id)
{
if ( $args['title'] == 'Blog - Latest News' )
{
$args['title'] = “Training Blog”;
}
return $args;
}
This will replace the “Blog – Latest News” with “Training Blog”.
Cheers!
Günter
Hi Günter
i have tried that.
First with functionality plugin:
the message was “Fatal Error”
Then via FTP
After that the page was blank.
Sure that the Code is correct?
Hi!
The code should work.
What do you mean with ” functionality plugin”?
You must insert the code above at the bottom of enfold/functions.php or if using a child theme in enfold-child/functions.php.
If you want, give us an admin login to your page and we can insert the code for you,
Regards,
Günter
Hey!
Sorry, there is a syntax error with “. Replace it with ‘ used with ‘title’.
add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
function fix_single_post_title($args,$id)
{
if ( $args['title'] == 'Blog - Latest News' )
{
$args['title'] = 'Training Blog';
}
return $args;
}
Regards,
Günter
Works now. Thanks for support.
Hi!
Great, glad Günter could help you :)
Regards,
Peter