Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #305418

    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.

    #305425

    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

    #305429

    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?

    #305484

    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

    #305498
    This reply has been marked as private.
    #305590

    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

    #306930

    Works now. Thanks for support.

    #307359

    Hi!

    Great, glad Günter could help you :)

    Regards,
    Peter

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Changing Blog Title’ is closed to new replies.