Remove Sitemap Credit

  • Hello, how to remove the note “This XML Sitemap is generated by Rank Math WordPress SEO Plugin”?

    I added the below in functions.php but it did not help.

    * Filter to remove sitemap credit.
    * @param boolean Defaults to false.
    add_filter( ‘rank_math/sitemap/remove_credit’, ‘__return_true’);

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

    Thank you for contacting Rank Math today.

    The code should be able to work, please clear your site cache and if this does not help perform a fresh install of the plugin to clear the local sitemap file.

    PS: No data loss should be experienced in this process.

    Looking forward to helping you. Thank you.


    Thank you Michael, I will keep the code there then and see how it goes.

    Could you please also advise the below:

    My site is all about traveling to Turkey and Turkey Tours, it is almost 4 months 15 days old and DA12 and it has some pretty good backlinks.

    The question is why Google is trying to rank me for some non-relevant keywords (samples listed below)? Assuming it is getting the country names from DOM elements on the tour booking form), would you call this a Google dance or something else?

    tours of south vietnam privately
    costa rica private tours liberia
    egypt tailor made tours

    and different combinations with some other countries. It appears on the daily results, disappears for a while and it shows some real data related to Turkey, and then the countries come back with different alternatives. It has been so for the last 6 days or so.

    Thank you in advance.


    Without seeing the page that is ranking for these keywords, it would be hard for us to tell.

    Also, how are you checking that you are rankings for those keywords?

    Do let us know so we can check.

    Hi Todd,

    Thank you for the prompt response. I am seeing these results on GSC. Ahrefs does not show all the keywords yet, but the results on Ahrefs are the most logical at the moment.


    Could you add the website link in the Sensitive Data section so we can check it (and maybe help you to know why Google is ranking your website for those terms)?

    Looking forward to help you.


    I have updated the sensitive data as requested. Can you please check further?

    Thank you.


    As far as I have seen, you are ranking for those keywords because Google thought it is related content, and users might be interested on them.

    You shouldn’t worry, you will rank for the right keywords once Google crawl, index your entire website, and process the user interests; just as you are seeing in Ahrefs (that it is starting to rank for the right keywords).

    Looking forward to help you.

    Thank you Alberto, that is very kind of you to double-check this and it is good to hear that it is just a temp. thing. We can close this ticket.

    Stay safe,



    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 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.

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

The ticket ‘Remove Sitemap Credit’ is closed to new replies.