• Resolved mohammadnrhi

    (@mohammadnrhi)


    1- Does RankMath need jquery to work properly? Or can I remove jquery?

    2- How can I remove the rankmath comments in my html source?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter mohammadnrhi

    (@mohammadnrhi)

    3- How about wp-json? Can I close it completely?

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mohammadnrhi,

    Thank you for contacting Rank Math support.

    1. Rank Math does not require jQuery for its core functionality to work properly.
    2. You can use the following filter to disable our plugin’s comments: https://rankmath.com/kb/filters-hooks-api-developer/#remove-plugin-credit-notice

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter mohammadnrhi

    (@mohammadnrhi)

    1- does rankmath need Rest Api(WP-JSON) to work properly? Or can I remove the Rest Api completely?

    2- what ways do you suggest to hide the sitemap from users? But not for search engines!

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mohammadnrhi,

    1. Rank Math requires the WordPress REST API to function properly, especially on the backend. 

    2. Unfortunately, this isn’t possible as the sitemap path needs to be in public view for the search engine to read it.

    However, if you want, you can change the base of the sitemap URL using the following filter in your active theme’s functions.php file:
    https://rankmath.com/kb/filters-hooks-api-developer/#change-sitemap-base

    You can set it up like this:

    add_filter( 'rank_math/sitemap/base_url', function( $base ){ return 'custom-base/';}, 10, 1 );

    You can create a custom base with a random or cryptic name or any name you want so your users won’t be able to guess it.

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    After doing so, please submit the sitemap again to your Google Search Console.

    Hope that helps.

    Thread Starter mohammadnrhi

    (@mohammadnrhi)

    1- is it enough to open restapi only for the admin account?

    1.2- is there a way to only allow requests sent by rankmath and block the rest? A specific header or…

    2- how can I change the html and css of the xml sitemap and delete these? And remove this xsl url:

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mohammadnrhi,

    1. If you open REST API only for admins, your editor and other user roles won’t be able to make changes or save the metadata in our plugin’s meta box.
    2. Our API routes use the following path: /wp-json/rankmath/v1/. You can check with your host if it is possible to only allow this path.
    3. It isn’t possible to remove or change the stylesheet URL of the sitemap.

    Please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter mohammadnrhi

    (@mohammadnrhi)

    1. My website has only one admin account with access to the WP dashboard. I was wondering, if I keep the Rest API access open only for this admin account, will RankMath work properly? Or does it require normal users to have Rest API access as well?
    2. Tnx
    3. We can’t even remove the text “learn more about xml sitemaps” from the html?
    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mohammadnrhi,

    1. If you only have a single admin account you can keep the REST API routes only whitelisted for that user.
    2. N/A
    3. Yes, you can remove the credits using the following filter: https://rankmath.com/kb/filters-hooks-api-developer/#sitemap-credit

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter mohammadnrhi

    (@mohammadnrhi)

    3- It doesn’t work for this text.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mohammadnrhi,
     
    The filter will only remove our plugin’s credits from the sitemap, not the “Learn more about XML sitemaps” text. There is no filter to remove that text from the sitemap.
     
    Please do not hesitate to let us know if you need our assistance with anything else.

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

The topic ‘hide backend’ is closed to new replies.