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

    Hi,

    Is it possible to change the static “Blog – Latest News” title in the header of a post to the title of that post?

    Thank you!

    #107151

    Hi lennard,

    Yes there is but you need to use a template builder template to do so. Create a new template that has the Heading element, Horizontal Rule and Post/Page content elements. Then you can apply that template to each post and it will have that format.

    Regards,

    Devin

    #107152

    Hi Devin,

    Thank you for the reply, but i would like all posts to have this. So also plugins that use post features. Would it be an option to adjust the single.php e.g. this line: $title = __(‘Blog – Latest News’, ‘avia_framework’); ?

    Regards,

    Lennard

    #107153

    Try going into includes>loop-index.php and look for:

    echo $title;

    and change it to

    echo $current_post['title'];

    Regards,

    Devin

    #107154

    I changed it, but it doesn’t have any effect. Still shows “BLOG – LATEST NEWS”

    regards,

    Lennard

    #107155

    Make sure to give your site a 3-4 refreshes within the browser just to make sure you aren’t viewing any browser cache. If you have any caching plugins, disable them as well.

    #107156

    Already got it…i changed this in single.php

    $title = __('Blog - Latest News', 'avia_framework');

    to

    $title = get_the_title($post->post_parent);

    #107157

    Glad you were able to get it working. I was trying to stray away from modifying the single and keep it in the loop but its just a preference of path to the same solution :)

    Let us know if you have any other questions or issues.

    Regards,

    Devin

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘"Blog – Latest News" different title for post’ is closed to new replies.