Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #495370

    When I turn on the page titles in Enfold it shows a title, but for many of the blog posts that title is incorrect and it says “Blog – Latest News” for all of them. These posts are not even in a blog category called Latest News. So I have no idea where Enfold is picking up that title from. How do we fix this?

    I notice that when we apply an Enfold template to an existing post and completely move the content into that Enfold template that the page title is correct (i.e. is the name of the page). But when the template is not applied, the page name is as described above. There are some posts that we are not going to apply this template to, so once our site is finished this is still going to be a problem for these posts.

    Also the breadcrumb path is incorrect. I have turned them off at the moment for many of the pages, but last night I was seeing this on every post I looked at. The breadcrumbs were set to pick up on the session data, but they were not displaying the path I took to get to the post. In fact I couldn’t figure out how they were getting the path they were.

    #495417

    Hi mikehartrich!

    I understand that your website is under construction, but may we have temporary access just to check to see if there is a setting conflict?

    You can also try disabling any plugins and ensuring that you are using the latest version of Enfold.

    Cheers!
    Dake

    #495507

    Hi Dake, details in the private content

    #495534

    Hi!

    Hvae you disabled the plugins, have you tried that option out that Dake suggested?

    Cheers!
    Basilis

    #498061

    Hi Basillis, no I haven’t had a chance to do that yet because there are several of us working on the site throughout the day, even in the evening. I don’t want anyone to lose their work of there is an error when I turn off all the plugins. I will try and test once I get a chance.

    #498788

    Hey!

    Alright. If you have the chance to access the site, try to add this in the functions.php file:

    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
        if ( is_single() )
        {
            $args['title'] = get_the_title($id);
            $args['link'] = get_permalink($id);
            $args['heading'] = 'h1';
        }
    
        return $args;
    }

    https://kriesi.at/support/topic/cant-change-blog-die-aktuellsten-neuigkeiten/#post-460731

    Best regards,
    Ismael

    #511809

    Hi Ismael, hacking the core files is bad practice, and we don’t want to create a child theme.

    I have found that if I turn on the Avia Layout Builder then Enfold will display the correct page titles. That limits us and creates much more work as we now have to convert hundreds of posts over to the Avia Layout Builder. Will the next Enfold update fix this bug?

    #512474

    If you don’t want / don’t have a child theme you can use this plugin to store custom functions like the one Ismael posted:
    https://wordpress.org/plugins/functionality/

    Regards,
    Josue

    #512479

    Thanks Josue, that would be handy, I’ll check it out!

    #512483

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.