• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

Customize entry header entry meta (Post Info) in Genesis

Last Updated on October 9, 2018 Favorited: 0 times

Remove Entry Header Markup

//* Remove the entry header markup
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );

Remove Entry Meta

//* Remove the entry meta in the entry header
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );

Remove Entry Title

//* Remove the entry title (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );

Remove Post Format Image

//* Remove the post format image
remove_action( 'genesis_entry_header', 'genesis_do_post_format_image', 4 );

Customize the Entry Header

//* Customize the entry meta in the entry header
add_filter( 'genesis_post_info', 'gk_post_info_filter' );
function gk_post_info_filter($post_info) {
	$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
	return $post_info;
}

Conditional Customization

add_action('genesis_before', 'gk_custom_entry_header_function', 10);
function gk_custom_entry_header_function() {
	
	//* use conditional tag @https://codex.wordpress.org/Conditional_Tags
    if ( ! is_singular('post') ) { //* multiple post types is_singular( array ('post','page') )
        return;
	}
	
	//* put some stuff to do
}

 

Related Posts

  • Customize entry Footer Entry Meta (Post Meta) in Genesis
  • Customize Post info conditionally in Genesis

Categories: Free Content, Genesis Tutorials Tags: entry meta, post info

Reader Interactions

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service