Majority of Genesis child themes display post info and post meta on homepage as well as single post pages. Few users may want to remove (or hide) the post info and post meta from the homepage of the blog but still show on the single post pages. You can easily remove post info and post meta sections from homepage except single post page using following code.

What is post info and post meta in Genesis

Post info section display information about specific post like: publishing date, author name and number of comments. While Post meta display ‘Filed Under’ categories and ‘Tageed With’ tags of every post.

Remove Post Info, Meta on home & show on single post

Add following code to functions.php file:

[cc]
// remove post meta post info – basicWP.com
remove_action(‘genesis_after_post_content’, ‘genesis_post_meta’);
remove_action(‘genesis_before_post_content’, ‘genesis_post_info’);

add_action(‘template_redirect’, ‘child_conditional_actions’);
function child_conditional_actions() {
if( is_single() ) {
add_action(‘genesis_after_post_content’, ‘genesis_post_meta’);
add_action(‘genesis_after_post_content’, ‘genesis_post_info’);
}}
[/cc]

Davinder Singh Kainth

A digital creator with 15+ years of experience in Website Design, Development, SEO, and Content Creation to Podcasting at SmartWebCreators.com with the motto of "Be Smart, Keep Creating". A coach, consultant, and your dear geek friend ❖

6 Comments

  1. zimbrul on October 12, 2012 at 12:26 pm

    Adding that just break my site :-(

  2. zimbrul on October 12, 2012 at 12:29 pm

    Sorry, it worked but it removes the post info from Single not from the Home Page !!!

    • Editor on October 14, 2012 at 12:49 pm

      Checked again, above code should remove post info and meta from homepage and display on single post page.

      You may get error, if your functions.php file already has “child_conditional_actions” for some other code. Just rename it to something else like “‘child_conditional_actions_one” at two places in the above and this should work fine.

  3. Stephanie Salateo on January 9, 2013 at 1:35 am

    It just didn`t work at all. :(

  4. Stephanie Salateo on January 9, 2013 at 1:59 am

    It worked, I was using a plugin that was in conflict with your code. thank you.

  5. Laura on April 17, 2014 at 11:58 pm

    Thank you, this worked great!

Leave a Comment