[Support request] Category name on page

Home Forums Support [Support request] Category name on page

Home Forums Support Category name on page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1661651
    Karin

    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!

    #1661901
    David
    Staff
    Customer Support

    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/

    #1662488
    Karin

    I tried to do this by following the tutorial you gave.
    I am unable to do it.
    Any easier way?

    #1662531
    Ying
    Staff
    Customer Support

    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!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.