- This topic has 2 replies, 2 voices, and was last updated 10 years, 4 months ago by .
- The topic ‘Generate Theme: Remove Post Info Section’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
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!
© 2023 WPEngine, Inc.