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

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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

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