Hello,
I understand that if I want to change the text before the author, within the blog, I have to use a filter. But where do add this filter? In a function file? (I’m having a child theme, but not really using it, acutally not using it at all) or Using Code Snippets like in https://docs.generatepress.com/article/adding-php/ ?
Besides, I really don’t know how to write this :
Instead of having $date par $author
I wish to have $date – $author
add_filter( ‘generate_post_author_output’,’vero_no_by_to_post_author’ );
function vero_no_by_to_post_author ( $output ) {
return ‘<i class=”fa fa-user-circle” aria-hidden=”true”></i> ‘ . $output;
}
( by the way, in French, “Par” would be better than “de” – maybe I should just change this )
Thanks in advance for your help ,
Véronique