Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #330618

    Hi,

    I’ve found this in numerous places in the support form, and it works great! … added to child theme functions.php

    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'] = get_the_title($id);
    $args['link'] = get_permalink($id);
    }
    
    return $args;
    }

    How do I make that title to be wrapped inside an h1 tag?

    Thanks!

    #331342

    Hi kem1975us!

    Thank you for using Enfold.

    Please use this:

    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'] = get_the_title($id);
    $args['link'] = get_permalink($id);
    $args['heading'] = 'h1';
    }
    
    return $args;
    }

    Best regards,
    Ismael

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