Archived topic
Hiding term description
3 replies · Started by Bob on January 28, 2021
I'm looking to hide the term description on archive pages, using PHP in my functions file.
It's appearing within
; I'm not sure if that is general WordPress or GenerpatePress specific.
I realize I can just hide it with CSS, but prefer to have it gone completely in that spot. I've tried different approaches using hooks but can't get it to work.
Hi there,
Try this PHP snippet:
add_action( 'wp', function() {
remove_action( 'generate_after_archive_title', 'generate_do_archive_description' );
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know if this helps :)
That works, thanks!
No problem :)