Invalid Sitemap

#4504
  • Resolved Wil Hatfield
    Rank Math free

    The sitemap that Rank Math is creating is being seen as invalid. I removed your xsl line and copies the sitemap into my root. Then Google accepted it without issue. You guys might want to check into it. Advertising is great, but I’m not sure inside the sitemap is the place to do it.

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

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

    This is quite unexpected, if the RM credit is causing an issue on your end you can also remove this by adding the following code to your theme’s functions.php file:

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

    I hope this info helps. Thank you.

    ​​​​​​​

    Yes that worked perfectly. Accepted it right away with no issues. So that fixes the invalid sitemap and the 0 URLs discovered.

    Todd
    Rank Math free

    Hello,

    That’s weird. The credit is only added to the HTML styling of the sitemap. It is not visible in the actual XML file presented to Google.

    But, we are glad you were able to fix this issue. We will be taking a closing look at this and if there is an issue – we will fix it in an update.

    Thank you.

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

The ticket ‘Invalid Sitemap’ is closed to new replies.