Forum Replies Created
-
AuthorPosts
-
cpaone
MemberThanks for the help, both code samples helped me find the solution...
Turns out the 'sp_post_info_filter' was already in use earlier in the functions file and I did not see it (I am new to this). Here is what I ended up doing to get the results I wanted...
//* Customize the entry meta in the entry header (requires HTML5 theme support)
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
$post_info = '[post_date]';
if ( is_archive() ) {
$post_info = '';
}
return $post_info;
}// Remove Post excerpt, Post Meta from Archive Pages
add_action ( 'genesis_entry_header', 'themeprefix_remove_post_meta' );
function themeprefix_remove_post_meta() {
if (is_archive()) {
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
}
}cpaone
MemberThanks for testing.
I still get the same issue - a blank site
I copy/ pasted the code to the end of my child theme functions.php file, then uploaded it (as a replacement) via ftp - do you know what I might be doing wrong here? Appreciate the support
cpaone
Memberthanks for the reply but the above code suggested to add to the php functions file actually breaks the site?
-
AuthorPosts