The title’s position cannot be deleted or changed

#675112
  • Resolved Anonymous
    Rank Math free

    Hi,
    I used the following 2 methods but both were unsuccessful
    remove_action( ‘wp_head’, ‘_wp_render_title_tag’, 1 );
    remove_action( ‘rank_math/head’, ‘_wp_render_title_tag’, 1 );
    I want to delete or change the display position.
    Thanks for watching

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

    We apologize for the inconvenience you’re experiencing. It seems that you’re trying to remove or change the display position of the title tag using the provided methods, but they were unsuccessful.

    To remove or change the display position of the title tag, you can use the following code snippet:

    add_filter( 'document_title_parts', function( $title ) {
        // Modify the $title array here
        return $title;
    }, 10, 1 );

    You can modify the $title array within the filter to change or remove the title tag. If you need further assistance with this, please feel free to reply to this ticket.

    We appreciate your understanding and patience as we work to resolve this issue for you.

    Sources:
    How to Fix Duplicate Meta Tags » Rank Math
    How to Make Your Theme Rank Math Compatible » Rank Math
    How to Disable All Rank Math Generated SEO Tags » Rank Math
    General Tab in Meta Box of Rank Math SEO Plugin

    Anonymous
    Rank Math free

    Thanks for the quick help,

    Can you help me with this? I would be happy to receive your professional help.
    1. How can I override the robots meta tag <meta name=”robots” content=”index”/> in certain query URLs.
    2. I want to move the <meta name=”google-site-verification”… tags to another location, how do I do that?

    I have looked at many documents, but did not see any of your documents.
    Can you help me, thank you very much

    Hello,

    1. Here’s an example of how you would override our robots meta tag:

    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    	$url = home_url($_SERVER['REQUEST_URI']);
    	if (strpos($url, 'https://example.com/some-slug/page') !== false) {
    		$robots['index'] = 'noindex';
    		$robots['follow'] = 'nofollow';
    	}
    	return $robots;
    });

    2. Unfortunately, you cannot move that tag and we don’t have any filter to do that as well.

    I would also like to address the issue with your title meta tag. Please note that Rank Math only modifies the theme’s title tag. If you remove the title using our filter code, it only removes the modification we did, not the actual title that your theme generates.

    To fully control the title tag, you would need to turn your attention to the theme structure instead.

    Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.

    Anonymous
    Rank Math free

    Hi Jeremy,
    Thanks for your help.
    1. Does this apply to the query url
    2. It’s okay, you can ignore this problem.

    I have another question
    1. How to move the <meta name=”robots” tag after the </title> tag

    Thanks, have a nice day

    Hello,

    1. Yes, this would apply to the page, regardless of the query parameters – if any.

    2. Sure.

    3. Rank Math’s robots tag is usually added after the <title> tag, can you please share the affected page URL so we can help take a look?

    Thank you for your patience and cooperation. Looking forward to hearing back from you.

    Anonymous
    Rank Math free

    Hi Great,
    Thank you, I got the problem resolved.
    Professional team, have a nice day.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Anonymous
    Rank Math free

    I tried that still won’t change the title. If I disable Rank Math it works just fine

    Hello @edward-9888,

    Thank you for contacting Rank Math support.

    Please open a new topic and provide the URL you’d like to override and the robots tag you’d like to apply instead – i.e. index or noindex.

    BTW, we will be closing this ticket now but you can open a new one from here.

    Thank you for choosing Rank Math!

    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 9 replies - 1 through 9 (of 9 total)

The ticket ‘The title’s position cannot be deleted or changed’ is closed to new replies.