Using a code editor, copy & paste this PHP code to the end of your Genesis child themes functions.php file.
- The code removes the post date from all post and page types.
- The code also removes the comment link from the front page only.
You can swap out the
is_front_page() conditional tag in the code to remove the comment link from other post and page types.
This code uses the :
- genesis_post_info filter hook located on line 347 in genesis > lib > structure > post.php
- PHP Variables
- Ternary operator
Note : Plugins like the Genesis Simple Edits plugin which also use this filter hook may override this PHP code.