[Resolved] Remove title box page

Home Forums Support [Resolved] Remove title box page

Home Forums Support Remove title box page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1303646
    Sandro

    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

    #1303803
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1303818
    Sandro

    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/

    #1303877
    Leo
    Staff
    Customer Support

    How are you adding the code?

    #1303885
    Sandro

    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/

    #1303893
    Leo
    Staff
    Customer Support

    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

    #1303914
    Sandro

    ah, yes, sorry… I didn’t understand your previous message (my English…)

    Actually, I added the code in the same plugin “Code Snippets”

    #1303926
    Leo
    Staff
    Customer Support
    #1303933
    Sandro

    ok, now I am fine! πŸ™‚

    Thank you

    #1303934
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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