I’m trying to remove the Post Info section above the post(s) on the home page of the Generate theme. A quick search online yields the following code to remove the Post Info and Post Meta sections:
/** Remove post meta function */ remove_action('genesis_after_post_content', 'genesis_post_meta'); //* Remove the post info function */ remove_action( 'genesis_before_post_content', 'genesis_post_info' );
Adding this to functions.php worked perfectly to remove the Post Meta, but unfortunately the Post Info section is still showing up on the home page. I also added the code to the home.php file, but still had not luck. Any ideas?http://www.steibelsauto.com
Im sure it has to do with the Generate theme repositions the post info, so the hook you are using will not work.
The good part is you only have to remove 1 line that is already in the functions.php on around line 42.
/** Reposition the post info function */ remove_action( 'genesis_before_post_content', 'genesis_post_info' ); add_action( 'genesis_before_post_title', 'genesis_post_info' );
And remove the the
add_action( 'genesis_before_post_title', 'genesis_post_info' );
Hope this helps
Perfect – thanks, Stewart!
The topic ‘Generate Theme: Remove Post Info Section’ is closed to new replies.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.