Last active
May 29, 2017 07:30
-
-
Save ellegaarddk/d8d180004d3861dfd37ff2eb531ab71d to your computer and use it in GitHub Desktop.
Wordpress Genesis - change / remove meta info pon posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Customise the post-info function */ | |
add_filter( 'genesis_post_info', 'genesischild_post_info' ); | |
function genesischild_post_info($post_info) { | |
if (!is_page()) { | |
$post_info = 'Posted on [post_date] Written by [post_author] [post_comments] [post_edit]'; //Edit to relevant text | |
//$post_info = ''; //To remove text | |
return $post_info; | |
} | |
} | |
// Remove the post info function | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment