-
AuthorPosts
-
September 10, 2013 at 4:33 am #29341
In the Enfold theme, the page title of individual pages that are shown in the “All Pages” list can controlled easily — just by changing the name of the page. Also, the title container itself for any of these listed pages can be easily suppressed just by choosing not to display the page header.
However, a “page” is also generated automatically when someone clicks on an individual post on the blog page, and this page displays the title container and the title “blog”. Howwever, this page is not shown in the list of pages, and I can’t figure out either how to change the title from “blog” to something else, or to suppress the title container completely. Can you help me out?
My site link, showing such a non-page page with the title “blog”, is: http://uufreethinker.com/2013/09/in-search-of-secular-spirituality-beyond-gazing-at-the-grand-canyon/
Thanks for your help.
John
September 10, 2013 at 5:17 am #140408Hi John,
Open the functions-enfold.php file and search for this line (262):
Replace it with this:
'html' => "",
Regards,
Josue
September 10, 2013 at 9:38 pm #140409Hi Josue,
There has been a misunderstanding of what I am requesting.
When I made the change you suggested, the title container (which is blue in my modification of the theme) and the white page title in the container were deleted from every page. I don’t want that. I want to keep all blue title containers and white titles where I now have them except only in one case.
That case is the dynamic page that gets generated when someone clicks on an individual post and is taken to a page labelled “blog” in the title container.
That’s all I want to change. I want to either (a) change the word “blog” to something else, or (b) delete the word “blog” and have no title in that one title container.
I can’t figure out how to do that because this “blog” page is not one of the pages that shows up in the “All Pages” view on the dashboard. It apparently is generated automatically to hold individual posts, and the theme inserts the word “blog”.
Is it possible to make only that specific change?
Please let me know.
Thanks,
John
September 11, 2013 at 2:08 am #140410Hi John,
Open single.php and delete this line (20):
if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
Or comment it:
//if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
Regards,
Josue
September 11, 2013 at 10:48 pm #140411Hi Josue,
That change does delete the blue title container and the title “blog” from just the individual blog posts. Thanks.
I have two related follow up questions, though:
1. As noted before, my preference would be not to delete the blue title container on the individual blog posts, but just to either eliminate the tile “blog’ for it, or to change it so something else, show as “blog post” or “individual post”. If this isn’t possible, I can live with deleting the container, but for aesthetic reasons I’d rather be able to keep it if we can eliminate or change the word “blog”, since I think that is not an accurate description of what is on the page (since the page has only one post from the blog, not the entire blog).
2. By making a change directly to the single.php file in the Enfold folder, will that change be wiped out when I update the Enfold theme periodically to newer versions? (If so, I assume I just take care to redo the change to this file each time.)
Thanks again for your help.
John
September 12, 2013 at 5:08 pm #140412Hi John,
1. Uncomment / restore the line you deleted, and change the content of the variable $title in line 9:
$title = __('Blog - Latest News', 'avia_framework');
You can change “Blog – Latest News” for whatever you want to.
2. Yes, this will be wiped when you update Enfold, try using a child theme to preserve changes.
Regards,
Josue
September 12, 2013 at 8:42 pm #140413Hi Josue,
I figured out a solution that works for me, just renaming some pages and using the title containers and titles that resulted.
Thanks for your help.
John
September 12, 2013 at 9:11 pm #140414Hi John,
Glad you get it working.
Regards,
Josue
-
AuthorPosts
- The topic ‘How change the page title at the top of individual post pages?’ is closed to new replies.