• I want the category name to be removed but still have the category description to be shown on the category site. I think I need a php code for my function.php.

    Tanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Leo

    (@leohsiang)

    Hi there,

    Give this PHP snippet a shot:

    add_action( 'wp', 'lh_remove_archive_title' );
    function lh_remove_archive_title() {
            remove_action( 'generate_archive_title', 'generate_archive_title' );
    	add_action( 'generate_before_main_content', 'generate_do_archive_description' );
    }
    Thread Starter mibi7691

    (@mibi7691)

    Thanks a lot.

    Michel

    Leo

    (@leohsiang)

    No problem 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to hide Category Name while Category Description will still be shown’ is closed to new replies.