Hello,
How can i change the top-left title “Blog : A la une” :
Please see this capture : https://ibb.co/m9vzfe
Thanks for your help,
Nicolas
Hey plichart1,
Here is a thread for you to consider
If you need further assistance please let us know.
Best regards,
Victoria
Please it doesn’t help me at all …
Hi plichart1,
You will need to replace this code in single.php line 11:
$title = __('Blog - Latest News', 'avia_framework'); //default blog title
I would suggest using a child theme: https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#why-child-theme so you can safely update the Enfold theme without losing the changes made.
Hope this helps.
Best regards,
Nikko
Thank a lot.
I’d also like this text to link to my “news” page, insteed of the homepage. How can i do this please ?
Regards,
Nicolas
Hi,
Please add this code to your child theme functions.php:
add_filter('avf_title_args', 'avf_title_args_mod', 10, 2);
function avf_title_args_mod($args,$id)
{
if ( is_singular('post') ) {
$args['title'] = get_the_title($id);
$args['link'] = get_permalink($id);
}
return $args;
}
You can replace get_the_title($id) with a static text like:
$args['title'] = 'My news page';
and replace $args[‘link’] = get_permalink($id); with a static url to your news page like:
$args['link'] = 'https://www.idt.pf/actualites/';
Best regards,
Dude
Awesome ! Thanks a lot !
Hi,
Glad we could help you :)
Best regards,
Dude