Remove Post Meta in Genesis Themes ( for both XHTML and HTML5 themes):
Field under and tagged with are the post meta data in Genesis themes.Post meta is the data displayed when you assign your posts to category and tag.It is not a great idea to show tags and categories under each post.
To remove post meta in Genesis theme, you must paste the following code in your functions.php file.
Go to Appearances > Editor > Functions.php
Here's the code to remove post meta in Genesis -for XHTML themes
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
Here's the code to remove post meta in Genesis -for HTML5 themes
remove_action( 'genesis_entry_header', 'genesis_post_meta', 12 );
How to Edit post meta in Genesis theme :
Instead of removing entire genesis post meta data,you can edit it with your own sentence.Here is the code snippets to modify or edit post meta in any Genesis child theme.Simply paste it i your themes functions.php file.
/** Customize the post meta function */
add_filter( 'genesis_post_meta', 'my_own_post_meta' );
function my_own_post_meta($post_meta) {
if (!is_page()) {
$post_meta = 'YOUR OWN CUSTOM META LINE HERE';
return $post_meta;
}}
Need Help :
We hope that this tutorial helps you to remove post meta genesis child theme.If you face any problem let us know.