remove title

#39589
  • You have a great plugin, but the meta tags <title> and description are displayed by arbitrary fields, I do not need this plugin functionality. Is it possible to disable output to the <title> and description code and if there is no way to do it from the admin panel (I understand it is strange to assume that this function is not needed) – write where it can be disabled in the code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You can add the following code snippets to your theme’s functions.php file to disable the title and description meta tags:

    /**
     * Code to move title inside the Rank Math's meta
     * 
     * @param string $title
     */
    add_action( 'init', function() {
            remove_action( 'rank_math/head', '_wp_render_title_tag', 1 );
            //uncomment to add default title tag
    	//add_action( 'wp_head', '_wp_render_title_tag', 1 );
    	
    });
    add_filter( 'rank_math/frontend/description','__return_false');

    Looking forward to helping you. Thank you.

    โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹โ€‹

    • This reply was modified 4 years, 7 months ago by Michael Davis.

    Thank you

    It does not work.
    Title and desc have in source code and on page in admin panel.
    Do you have any ideas?

    Hello,

    Thank you for contacting Rank Math today.

    This code will remove the meta tags on the frontend and not the backend. If this is not working we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘remove title’ is closed to new replies.