Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #406934

    Hello!

    I am trying to find the edit option for the header title (see screenshot) but I can’t find it. This title is displayed on top of a blog item. The text in the header title displays: ‘Blog – Latest news’. I want to change this text but I can’t find the location of it.

    Is it a sort of category or page? I already tried searching in blog/page categories.

    Also:
    The header title links to the homepage, where do I edit this? I think this question will be answered once the problem described above is resolved.

    Screenshot:
    http://imghst.co/4/probleem_header_titel.PNG

    Thanks in advance!

    • This topic was modified 9 years, 9 months ago by MediateamWingerd. Reason: Added one extra question: header title linking to homepage
    #407186
    #411707

    Hi Yigit,

    Thank you for answering and providing the help. Sadly, I am not a php-wizard and get the piece of code to work.
    I’ve put the code in my functions.php in ‘Appearance>Editor’. But the title bar is still showing up.

    I must be doing it wrong:
    Screenshot: http://imghst.co/16/Screen_Shot_2015-03-15_at_15.55.12.png
    How do I paste the code correctly?

    #411795

    Hi Yigit,
    that mentioned link doesn’t work for me either. I have exactly the same problem as MTWinger. Hope for good advice soon!
    THX A LOT.
    Kind regards
    JBenn

    #412397

    Hey!

    The link Yigit provided is going to change the single post title to the actual post title. If your changing the “Blog – latest news” text in the code then it’s going to break it. If you want to change it to something else besides the post title then do this instead.

    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'] = "custom title";
            $args['link'] = get_permalink($id);
            $args['heading'] = 'h1';
        }
    
        return $args;
    }

    Also keep in mind that this is only going to work if you do not have a blog page setup in the theme settings. If you do have a blog page setup then the blog page title is going to display there instead.

    Best regards,
    Elliott

    #435680

    Thank you for your help! My problem is fixed.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Where to edit the header title?’ is closed to new replies.