[Resolved] how to hidden the category’s name

Home Forums Support [Resolved] how to hidden the category’s name

Home Forums Support how to hidden the category’s name

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2394163
    bruce

    hello

    please see this url:https://finechem.baynoe.com/archives/category/pharm-intermediate-en

    how to hidden the category’s name:

    <img src="https://prnt.sc/RA_d5f6puaKe" alt="" />

    i archive this function with element’s block.

    but the category’s name i comfirm that i do not use query function.

    thanks.

    #2394318
    Leo
    Staff
    Customer Support

    Hi there,

    Can you try creating a layout element to disable the content title on that page?
    https://docs.generatepress.com/article/layout-element-overview/#disable-element

    Let me know 🙂

    #2394517
    bruce

    hello

    i created layout element but no use.

    please help check it,thansk.

    please see the pic:

    https://prnt.sc/foLuhlvj_03F

    https://prnt.sc/a_O_kC-nmcJR

    #2394936
    David
    Staff
    Customer Support

    Hi there,

    if you want to remove all category archive titles, try adding this PHP Snippet:

    add_action('wp', function(){
        if ( is_category() ) {
            remove_action( 'generate_archive_title', 'generate_archive_title' );
        }
    });
    #2395825
    bruce

    Hello David ,

    it worked.

    thanks.

    #2396321
    David
    Staff
    Customer Support

    Glad to hear that!

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