Home › Forums › Support › Function to remove entry-header and featured-image This topic has 5 replies, 3 voices, and was last updated 3 years, 11 months ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts April 29, 2020 at 9:02 am #1261501 Fabien Hi, Is there a function to remove the header (cf. entry header) fully and the featured image ? Thanks April 29, 2020 at 9:20 am #1261535 LeoStaff Customer Support Hi there, Just to confirm, so basically you only want to use the excerpt on the posts/archive pages? April 29, 2020 at 11:03 am #1261688 Fabien Nope 😉 I just want to remove/hide the post title and the thumbnail of my CPT by using a php function and not elements. April 29, 2020 at 5:19 pm #1262131 TomLead Developer Lead Developer Would this be on single posts or in the archive? April 30, 2020 at 1:58 am #1262534 Fabien Hi Tom, Single post ! April 30, 2020 at 9:41 am #1263497 TomLead Developer Lead Developer Give this a shot: add_filter( 'generate_show_title', function( $show ) { if ( is_singular( 'your-post-type' ) ) { return false; } return $show; } ); For the featured image, any chance you can link me to one of the posts? Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In