You can do this if your theme includes an action hook that runs at the top of the author page. Some themes provide such hooks in their templates, but not all do.
Let’s say your theme is GeneratePress, a great theme that provides many hooks that allow you to customize almost anything. You don’t need a third party plugin like Code Snippets to add custom PHP code to your site, our plugin already allows you to do that. Just go to: Authors > Settings > Advanced and find the Custom PHP panel. There, paste the snippet below:
// Remove default author information displayed at the top of the author page.
remove_action('generate_archive_title', 'generate_archive_title');
// Add Molongui Authorship author box to the top of the author page.
add_action('generate_before_main_content', function(){ echo do_shortcode('[molongui_author_box]'); });
Save settings and check your frontend. The author box should have replaced default author data, showing author bio, social links and profile picture.
For any other theme that provides a similar hook, the process will be the same:
- Optionally, prevent default author data to be displayed.
- Display the author box using the shortcode.
Please let us know if this helps.