Archived topic
how to hidden the category's name
5 replies · Started by bruce on October 30, 2022
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.
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 :)
hello
i created layout element but no use.
please help check it,thansk.
please see the pic:
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' );
}
});
Hello David ,
it worked.
thanks.
Glad to hear that!