Remove Sitemap Credit

#83675
  • 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 5 replies - 1 through 5 (of 5 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.​​​​​

    What is the minimum I should paste in functions.php?

    Alberto
    Rank Math business

    Hello,

    You should paste at the end of the functions.php file this code:

    add_filter( ‘rank_math/sitemap/remove_credit’, ‘__return_true’);

    With just that (and clearing the cache and resaving the permalinks), it should work fine.

    Looking forward to help you.

    Done, but still there 🙂 no worries, thank you so much Alberto

    Alberto
    Rank Math business

    Hello,

    Well, if you want us to log in and check it we will do it! If not, do you have any other questions? Or do you want us to close this thread? In any case, we will be here if you have any other questions or issues in the future.

    Looking forward to help you.

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

You must be logged in to reply to this ticket.