Okay
  Public Ticket #1573441
Remove tge category name
Closed

Comments

  •  3
    Marco_Critico started the conversation

    Hello, 

    My question is the same as this one: https://withemes.ticksy.com/ticket/1311630/

    I have tried to use the same code but it didn't work: http://prntscr.com/jhe54c

    It says "It has been imposible to comunicate with the site to check fatal errors so the php change wasnt saved. You should upload the change to the PHP file with other methods such as SFTP." 

    How can I fix it?

  •  3
    Marco_Critico replied

    Hello, 

    Is there any new about this?

  •  131
    Cuong replied

    Hi Marco Critico,

    It seems you're running a PHP version <= 5.3 so that code doesn't work. Please try this one:

    add_filter( 'get_the_archive_title', 'radians_archive_title' );
    function radians_archive_title($title) {
        if ( is_category() ) {
                $title = single_cat_title( '', false );
            } elseif ( is_tag() ) {
                $title = single_tag_title( '', false );
            } elseif ( is_author() ) {
                $title = '<span class="vcard">' . get_the_author() . '</span>' ;
            }
        return $title;
    }

    Hope this helps, Cuong Tran

    WordPress lover. My Profile

  •  3
    Marco_Critico replied

    Hello,

    No. The issue doesn't have to do with this.  WordPress 4.9 and forward has inluded some limitations that dont allow to edit php documents from the wordpress control panel directly. It has to be done from FTP or form cPanel. That is the reason I cant edit the document.

    Anyways I use the previous script form de cPanel and it worked fine. Thak you, you can close this ticket