• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Move Entry Footer Post Meta To Entry Header & Entry Header Post Info To Entry Footer

This code enables you to reposition the category & tag links in your entry footer to your entry header and move the comments, author and date links from your entry header to the entry footer.

Here’s the before & after shots.

before-reposition

after-reposition

This solution is based on this question from a member of the Genesis community:

Ideally, I would like categories in the header, and the date, byline, and comments in the footer.

Here’s the code you need to add to your child themes functions file using a code editor, not the WordPress theme editor under the Appearance menu in your Dashboard.

remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
add_action( 'genesis_entry_header', 'genesis_post_meta' );

remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
add_action( 'genesis_entry_footer', 'genesis_post_info' );

If you need to conditionally reposition either the post info or post meta to or from the entry header and entry footer, here’s the PHP code to do that.

Entry Meta

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems