Hello @akiraanastasia,
?
The filter should be modified like this:
?
/** * Filter: 'rank_math/sitemap/index_slug' - Modify the sitemap index slug. * * @param string $slug Sitemap index slug. * * @return string */ add_filter( 'rank_math/sitemap/index/slug', function($slug) { return 'my-custom-sitemap'; //change the name here }, 10, 1 );
?
Once done, please follow these steps to flush your sitemap cache:
https://i.rankmath.com/pipRDp
?
The filter above will make your sitemap URL like:
https://yourwebsite.com/my-custom-sitemap.xml
?
You can change the “my-custom-sitemap” part in the code for your desired sitemap slug.
?
Also, yes, the small logo that appears in your search results is called Favicon. However, Rank Math is not responsible for controlling the?favicon?that appears on your website. Usually, that’s built into the theme options.
?
You can also check the guidelines that Google has for that here:?https://developers.google.com/search/docs/appearance/favicon-in-search
?
Looking forward to helping you.