Removing credits from sitemaps

#331246
  • Resolved Kenny Lajara
    Rank Math free

    I am trying to remove the following text from my sitemap:

    This XML Sitemap is generated by Rank Math WordPress SEO Plugin. It is what search engines like Google use to crawl and re-crawl posts/pages/products/images/archives on your website.
    Learn more about XML Sitemaps.

    In order to do that, I am trying to use the this hook as a plugin, because I can’t use functions.php in the Oxygen Theme.

    So, this is the code of my plugin:

    <?php
    
    /**
     * Plugin Name: Remove Rank Math Credit
     * Description: Remove the Rank Math credit from the sitemap.
     * Version:     1.0.0
     * Author:      Custom Plugin
     */
    
    /**
     * Filter to remove sitemap credit.
     *
     * @param boolean Defaults to false.
     */
    add_filter('rank_math/sitemap/remove_credit', '__return_true');
    

    But it doesn’t work.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us and we regret the inconvenience caused.

    You can follow any of the mentioned processes in this guide to add the code: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    If you do not have access to functions.php, please try using the Code Snippets plugin (step 1 in the above guide) and see if that helps.

    Let us know how that goes.

    Thank you.

    Thank you very much for your help and quick answer.

    I just tried using with the code snippet plugin but it doesn’t work.

    Prabhat
    Rank Math agency

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

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

    Thank you.

    I’ve just updated the private data to add the temporary login. Please, have a look.

    I didn’t include any FTP credentials because the WP installation is running on a Docker container and I usually connect via SSH. I have no idea of how to add give you access just to a Docker Volume.

    Any suggestion? Is it enough with the Login info?

    Prabhat
    Rank Math agency

    Hello,

    I checked and the credits from the sitemaps are already removed from the code you added in the Code Snippets plugin. Please have a look at the screenshot in the sensitive data section of this ticket.

    Please clear your website and browser’s cache and check the sitemaps again.

    You can also check this in an incognito/private window of your web browser.

    Hope this helps.

    Thank you.

    Oh! The issue was caching on my browser.

    Thank you very much!

    Prabhat
    Rank Math agency

    Hello,

    We’re glad that we could address the concern.

    Please feel free to get in touch if you require any further assistance.

    Thank you.

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

The ticket ‘Removing credits from sitemaps’ is closed to new replies.