Archived topic

Remove title box page

9 replies · Started by Sandro on May 27, 2020

Viewing posts 1–10 of 10

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 :)

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/

ah, yes, sorry... I didn't understand your previous message (my English...)

Actually, I added the code in the same plugin "Code Snippets"

ok, now I am fine! :-)

Thank you

No problem :)

This archived topic is closed to new replies.