Title: Adding author box without plugin.
Last modified: September 20, 2023

---

# Adding author box without plugin.

 *  Resolved [Wild Jim](https://wordpress.org/support/users/smokingblends/)
 * (@smokingblends)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/adding-author-box-without-plugin/)
 * Hello,
 * We have been attempting to use the instructions to add an author box without 
   plugin via our child theme. The instructions seem to be wrong and it does not
   work. Instructions – (“You’ll need to add the code below the “the_content()” 
   function and above the main div container:” ) There is no “the_content()” function
   on the single.php page.
 * Any help would be appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-author-box-without-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/adding-author-box-without-plugin/#post-17079595)
 * Hi there [@smokingblends](https://wordpress.org/support/users/smokingblends/)
   👋
 * > Adding author box without plugin.
 * With a web search, I was able to find the [article linked here](https://www.wpbeginner.com/wp-tutorials/how-to-add-an-author-info-box-in-wordpress-posts/),
   for adding author boxes in various ways.
 * I trust that points you in the right direction, but if you have more questions,
   let us know.
 * We’re happy to help.
 *  Thread Starter [Wild Jim](https://wordpress.org/support/users/smokingblends/)
 * (@smokingblends)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/adding-author-box-without-plugin/#post-17079953)
 * [@anastas10s](https://wordpress.org/support/users/anastas10s/) We searched for
   a long time for another option. All we could find was the same code that went
   on the single.php page, or for plugins. The information on that page should do
   the trick. It has a different code that goes on a completely different page. 
   Thanks
 *  [Paulo Arromba](https://wordpress.org/support/users/pauloarromba/)
 * (@pauloarromba)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/adding-author-box-without-plugin/#post-17088581)
 * Hi [@smokingblends](https://wordpress.org/support/users/smokingblends/) 
   Unfortunately,
   those guides are too generic, and it depends on the theme’s implementation of
   templates and templates part. In this case, Storefront uses a template part to
   display the post, and that is the reason `the_content()` is not present there.
 * ~Furthermore, editing the theme files is not a safe and future-proof option; 
   each update would revert your changes. If you want to do many modifications, 
   I would advise you to create a child theme.~ _(sorry, just noticed you are already
   using a child theme)_
   For this specific situation, the safest way would be to
   use the `storefront_single_post_bottom` action, which will get fired after the
   post content (just like the post nav and comments).
 * I have rewriten the guide’s example to use this action instead (you can paste
   it at the end of your child theme functions.php file):
 *     ```wp-block-code
       add_action('storefront_single_post_bottom', function() {
       ?>
       <div class="about-author">
       <div class="about-author-image">
       <?php echo get_avatar(get_the_author_meta('ID'), 250); ?>
       </div>
       <div class="about-author-text">
       <h3>About <?php echo get_the_author_meta( 'display_name'); ?></h3>
       <?php echo wpautop(get_the_author_meta('description')); ?>
       <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>">View all posts by <?php the_author(); ?></a>
       </div>
       </div>
       <style>/* insert custom css here */</style>
       <?php
       }, 1);
       ```
   
 * Please note, that it might need tweaking to look good. I left an indication where
   custom css to address styling could be added.
    -  This reply was modified 2 years, 8 months ago by [Paulo Arromba](https://wordpress.org/support/users/pauloarromba/).
 *  Thread Starter [Wild Jim](https://wordpress.org/support/users/smokingblends/)
 * (@smokingblends)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/adding-author-box-without-plugin/#post-17090052)
 * [@pauloarromba](https://profiles.wordpress.org/pauloarromba/) Thanks, we have
   not gotten around to doing this yet. That does seem like the better way to go.
 *  [Paulo Arromba](https://wordpress.org/support/users/pauloarromba/)
 * (@pauloarromba)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/adding-author-box-without-plugin/#post-17090274)
 * [@smokingblends](https://wordpress.org/support/users/smokingblends/) If you need
   further assistance in tweaking the provided info or styling the author box, feel
   free to tag me here.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding author box without plugin.’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/storefront/4.6.2/screenshot.png)
 * Storefront
 * [Support Threads](https://wordpress.org/support/theme/storefront/)
 * [Active Topics](https://wordpress.org/support/theme/storefront/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/storefront/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/storefront/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Paulo Arromba](https://wordpress.org/support/users/pauloarromba/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/adding-author-box-without-plugin/#post-17090274)
 * Status: resolved