Remove author and date for custom post

How would I change this functions.php script to work with X?

add_action ( ‘genesis_before_entry’, ‘wpb_remove_post_info’ );
// Remove Post Info and Post Meta from CPT
function wpb_remove_post_info() {
if ( ‘sfwd-courses’ || ‘sfwd-lessons’ || ‘sfwd-quiz’ || ‘sfwd-topic’ || ‘sfwd-certificates’ == get_post_type() ) {
remove_action( ‘genesis_entry_header’, ‘genesis_post_info’, 12 );
remove_action( ‘genesis_entry_footer’, ‘genesis_post_meta’ );
}
}

Hi There,

Thanks for writing in! The best way would be to use CSS rules to hide those meta data.

Or else check the following file to locate the relevant function.
/x/framework/functions/{STACK}.php

For example if you’re on ethos stack, check the following file.
/x/framework/functions/ethos.php
Locate the function x_ethos_entry_meta

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.