Site logo

Archived topic

Category name on page

3 replies · Started by Karin on February 17, 2021

Viewing posts 1–4 of 4

How can I remove the name of the category that shows up on my page?
I don't want it to say Recipe in a block at the top of that page. ;)
Thanks!

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:

https://docs.generatepress.com/article/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!

This archived topic is closed to new replies.