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
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
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