Archived topic
Category name on page
3 replies · Started by Karin on February 17, 2021
Hi there,
add this PHP snippet to your site:
add_action( 'wp', 'lh_remove_archive_title' );
function lh_remove_archive_title() {
remove_action( 'generate_archive_title', 'generate_archive_title' );
}
Adding PHP:
I tried to do this by following the tutorial you gave.
I am unable to do it.
Any easier way?
I'm afraid that's the easiest way :p
1. Go to Dashboard > Plugins > Add new, search Code Snippets, install and activate it.
2. Go to Dashboard > Snippets > Add new, copy the code from David's reply, paste it in to the content field, save and activate it.
https://www.screencast.com/t/uMshARwdjq
That's it!