Hi @mickyblu82
To hide the sentence pointed on your screenshot, you can use the following code:
$rm_sitemap_counter = 0;
add_filter( 'rank_math/sitemap/remove_credit', function() {
global $rm_sitemap_counter;
$rm_sitemap_counter++;
if ( $rm_sitemap_counter == 2 ) {
echo '<style type="text/css">#description p { display: none; }</style>';
}
return false;
}, 10, 1 );
If you would like to hide the blue header part completely, try this code instead:
$rm_sitemap_counter = 0;
add_filter( 'rank_math/sitemap/remove_credit', function() {
global $rm_sitemap_counter;
$rm_sitemap_counter++;
if ( $rm_sitemap_counter == 2 ) {
echo '<style type="text/css">#description { display: none; }</style>';
}
return true;
}, 10, 1 );
Please note that this sentence and the link inside it doesn’t matter at all from a SEO point of view. In fact none of the styling matters, these are added inside the XSL file that complements the XML and makes it more easy to read for humans when the XML is opened in a browser. Search engines will ignore the XSL and only look at the raw XML data.
Hope that helps.
-
This reply was modified 4 years, 8 months ago by Rank Math.