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

    HI,
    On this templates page (archive), the h1 is the title of the last post. Why ?
    I want somethings like “Catégorie ; Interview staff”

    thanks

    #1306497

    Hey Luc,

    Please provide a link to the site/page in question so I can understand what you mean.

    Best regards,
    Jordan Shannon

    #1306692

    Hi, scuses me I forgot the url : ) : https://www.footbreizhacademie.com/fil-info/

    #1306864

    Hi,

    Thank you for the info.

    Did you add or use the avf_which_archive_output filter in the functions.php file? By default, the name of the category should display in the archive pages, not the title of the first post.

    Best regards,
    Ismael

    #1306885

    Hi,

    I’ve not add this filter in functions.php. I’ve the default archive.php templates. Do you have a solution for me ?

    thanks

    #1307087

    Hi,

    Thank you for the update.

    We may need to access to the dashboard in order to check the issue further. Please post the login details in the private field and make sure that the Appearance > Editor panel is accessible.

    Best regards,
    Ismael

    #1307171

    Hi, thanks, here the login in private.

    #1307401

    Hi,

    Thank you for the info.

    It works correctly when we disable the avf_title_args filter in the functions.php file. Try to add a condition so that the filter is only applied on single posts.

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

    Best regards,
    Ismael

    #1307420

    Hi, You have change somethings ? it’s correct now

    #1307527

    Hi,

    It seems Ismael’s explanation of the fix is above. It could also have been a caching issue if it did not work initially.

    Best regards,
    Jordan Shannon

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