For those that use Yoast WordPress SEO plugin you may noticed that plugin generates certain text warnings on each page of the site including xml sitemap (view page source if you did’t notice). We do not know if this can relate to any performance declines of the site but we decided to remove it as we do not like the idea of linking out to Yoast site from every existing page of the domain.
1. Go to plugins in wordpress dashboard
2. Click edit by WordPress SEO
3. Select wordpress-seo/frontend/class-frontend.php
4. Press ctr+f and enter bellow lines of code and delete one by one.
<!– Admin only notice: this page doesn’t show a meta description because it doesn’t have one, either write it for this page specifically or go into the SEO -> Titles menu and set up a template. –>
<!– / Yoast WordPress SEO plugin. –>
<!– This site is optimized with the Yoast WordPress SEO plugin v” . WPSEO_VERSION . ” – http://yoast.com/wordpress/seo/ –>
5. Update File
Proceed to sitemap.xml clenup if you wish.
6. Select wordpress-seo/css/xml-sitemap-xsl.php
7. Remove bellow part of the code.
Generated by <a href=”http://yoast.com/”>Yoast</a>’s <a href=”http://yoast.com/wordpress/seo/”>WordPress SEO plugin</a>, this is an XML Sitemap, meant for consumption by search engines.<br/> You can find more information about XML sitemaps on <a href=”http://sitemaps.org”>sitemaps.org</a>.
8. Update file.