Archived topic
Remove title box page
9 replies · Started by Sandro on May 27, 2020
Hi
(sorry for my English)
I'd like to remove the title of the blog page (I don't want to see the category as a title)
Example: in this page (http://squarci.info/argomenti/terra/) I want to remove the title "Terra" (category)
Is it possible
Thanks
Hi there,
Try this PHP snippet:
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/
Let me know if this helps :)
ops...
no, it doesn't work.
I leave the php snippet on, for a while, so you can see the effect of it
You con see this page:
http://squarci.info/argomenti/terra/
How are you adding the code?
I'm not fine
Adding the code, the title is removed, but instead of the title there is this message:
"Warning
: call_user_func_array() expects parameter 1 to be a valid callback, function 'tu_custom_paged_archive_title' not found or invalid function name in
/home/squarci2/public_html/wp-includes/class-wp-hook.php
on line
287"
You can see it in this page:
http://squarci.info/argomenti/terra/
Where are you adding the code?
I just tried the code in Code Snippets plugin and it worked with no issues:
https://www.screencast.com/t/mUJs1sTd
ah, yes, sorry... I didn't understand your previous message (my English...)
Actually, I added the code in the same plugin "Code Snippets"

Oops sorry my bad. Try the edited snippet:
https://generatepress.com/forums/topic/remove-title-box-page/#post-1303803
ok, now I am fine! :-)
Thank you
No problem :)