-
AuthorPosts
-
March 6, 2015 at 12:13 pm #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.PNGThanks in advance!
- This topic was modified 9 years, 8 months ago by MediateamWingerd. Reason: Added one extra question: header title linking to homepage
March 6, 2015 at 6:41 pm #407186Hey MediateamWingerd!
Please see – http://kriesi.at/documentation/enfold/replace-the-default-blog-latest-news-title/
Cheers!
YigitMarch 15, 2015 at 4:59 pm #411707Hi 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?March 16, 2015 at 2:29 am #411795Hi 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
JBennMarch 16, 2015 at 6:24 pm #412397Hey!
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,
ElliottApril 27, 2015 at 10:10 pm #435680Thank you for your help! My problem is fixed.
-
AuthorPosts
- The topic ‘Where to edit the header title?’ is closed to new replies.