Change Position Of Author Box in StudioPress Themes

Need to move your author box to a different position in Genesis?

This code enables you to reposition your author box from the default position to any other hook position.

Here’s the default position after the post meta and before the comments form:

default author box position

Reposition Author Box On Single Posts

Here’s the PHP code which moves the box so it displays immediately after your content, before the post meta.

remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );
add_action( 'genesis_entry_content', 'genesis_do_author_box_single', 11 );

Simply paste the above code at the end of your child themes functions.php file.

You can use other genesis hooks to change the position and also fine tune exactly where you want the box to display when other content is using the same hook by changing the 3rd parameter for positioning priority like this :

add_action( 'genesis_entry_content', 'genesis_do_author_box_single', 8 );

Which produces this :

Enable Disable Author Genesis

You can also enable/disable your author box under Users > Your Profile > Author Box for single posts and archive pages:

enable author box


Comments

One response to “Change Position Of Author Box in StudioPress Themes”

  1. Thanks! Worked like a charm to move the author box above the meta.

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.