Hello,
I apologize for the inconvenience you are facing with removing the Rank Math credit from your XML sitemap. To successfully remove the credit from the sitemap, you can use the following filter in your rank-math.php
file:
add_filter( 'rank_math/sitemap/remove_credit', '__return_true');
Since you have already added this filter and it’s not working as expected, please ensure that there are no syntax errors in the file. Additionally, make sure that the file is correctly placed in the theme directory.
If the issue persists after verifying the above steps, you can try clearing any cache on your website and then check the sitemap again to see if the credit has been removed.
If you need further assistance or the issue persists, please feel free to reply here, and a human agent from the Rank Math Support team will assist you promptly.
Thank you for bringing this to our attention.
Sources:
Rank Math SEO Filters and Hooks for Developers – Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank Math
How to Fix “Incorrect HTTP Header Content-Type” Error in Sitemaps » Rank Math
Enable Rank Math SEO on Elementor Templates » Rank Math
How to Create a Custom Sitemap and Include It in Rank Math » Rank Math
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We checked your sitemap and we can see the Rank Math credit is already removed from there:
If you’re still facing the issue, please clear your browser cache and check again.
Let us know how it goes. Looking forward to helping you.
Thank 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.