Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #304658

    I saw that in Portfolio section, the name of the portfolio is the Main Title. How can you do the samething for Posts in Blog? I want the Post Title to be the Main Title.
    Thanks,
    – CJ

    #304784

    Hi bemofunny!

    Thank you for using Enfold.

    Please use this on functions.php:

    add_filter('avf_title_args', 'fix_blog_page_title', 10, 1);
    function fix_blog_page_title($args) {
    if(is_singular() && !is_page()) {
    $args['title'] = get_the_title();
    $args['link'] = get_permalink();
    }
    return $args;
    }

    Best regards,
    Ismael

    #305006

    HI Ismael,

    I am confused. Where do exactly I need to either insert or replace with the code you provided? I don’t see function fix_blog_page_title in functions.php file. Also in which order (before or after which function, etc.) that I need to insert this.

    Thanks,
    – CJ

    #305054

    Hi!

    Please insert the code Ismael posted to the bottom of Functions.php file in Appearance > Editor

    Regards,
    Yigit

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