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

WP SITES

2787

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Remove Post Info & Entry Meta From Single Posts in Genesis

This code removes the post info ( entry meta ) from the entry header and the entry meta from the entry footer on single posts only.

Using a code editor, paste the code at the end of your child themes functions file.

add_action( 'loop_start', 'remove_entry_meta' );
function remove_entry_meta() {
if ( is_singular('post') ) {
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    }
}

The post info generally includes the post date, author link, comments link and edit link for logged in users.

Example:

post-info-entry-header

The entry meta in the entry footer generally includes the post tags and categories the post is assigned to.

Example:

entry-meta-entry-footer

Entry Meta

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.