Hi Ed,
At some point, I changed the content-author.php
template to be largely action hooks with the different functions attached to the different hooks. I like hooks/functions myself. You can unhook the existing template functions and then add your own.
As an example, adding this to your child theme’s functions.php
would remove the avatar from the output and replace it with the “$name likes Tacos”.
function kia_sul_remove_avatar() {
remove_action( 'sul_before_user_loop_author_title', 'sul_template_loop_author_avatar' );
add_action( 'sul_before_user_loop_author_title', 'kia_likes_tacos' );
}
add_action( 'simple_user_listing_before_loop', 'kia_sul_remove_avatar' );
function kia_likes_tacos() {
global $user;
echo $user->display_name . " likes Tacos??";
}
Or you can override the entire content-author.php
template and edit directly there. You lose the hooks and whatever I might add to them, but realistically… that isn’t much of a loss!
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $user;
?>
<div id="user-<?php echo $user->ID; ?>" class="author-block">
<?php echo $user->display_name . ' likes Tacos??'; ?>
</div>
I hope that helps… probably should add something to the docu, but a little overwhelmed at the moment. If there’s anything you’ve learned that you think would be helpful, I’d be happy to add anything you write.
Cheers!