Hello!
I need to remove the default title from Category archives. I tried the snippet on this forum post: https://generatepress.com/forums/topic/remove-the-title-on-category-archive-pages/
add_action( ‘after_setup_theme’, function() {
remove_action( ‘generate_archive_title’, ‘generate_archive_title’ );
} );
The suggested snippet works great for removing the title – but it also removes the category description along with it, which I need to keep. Is there a way to remove only the title, without having to hide it via CSS?
Secondarily, is it possible to have it only apply to the category archives and not date or author-based archives? That’s not mission-critical, but would be nice.
Thanks!