Hi there,
This snippet should remove featured image on category pages:
add_filter( 'option_generate_blog_settings', 'lh_remove_category_featured_image' );
function lh_remove_category_featured_image( $options ) {
if ( is_category() ) {
$options['post_image'] = false;
}
return $options;
}
This should remove the excerpt on category pages:
add_filter( 'excerpt_length','lh_custom_excerpt_length', 1000 );
function lh_custom_excerpt_length( $length )
{
if ( is_category() ) {
return 0;
} else {
return $length;
}
}
Adding PHP: https://docs.generatepress.com/article/adding-php/