Tweaks

How to Remove Authors and Style in Sitemap XML

Strip SEO plugin author names and custom CSS styling from your sitemap XML output with WP Ghost. SEO plugins like Yoast, Rank Math, and All in One SEO add their branding to your sitemap. Open any default WordPress sitemap in a browser and you’ll see the plugin name, a styled interface, and sometimes the developer’s website link – all publicly visible. None of it helps SEO. All of it confirms your WordPress stack. WP Ghost removes it in one click.

What Do Authors and Styles in Sitemap XML Reveal?

When SEO plugins generate your sitemap, they typically inject two things: an author comment or reference identifying the plugin (like “Generated by Yoast SEO” or “Powered by Rank Math”), and a custom XSL stylesheet that renders the sitemap in a branded, formatted view in the browser instead of raw XML.

These additions are entirely cosmetic. Google doesn’t read XSL stylesheets. Google doesn’t care who generated the sitemap. But anyone who visits yourdomain.com/sitemap.xml – including bots, scanners, and theme detectors – sees exactly which SEO plugin you’re using. From that single data point, they can infer your CMS (WordPress), your SEO setup, and potentially the plugin version if the stylesheet URL contains version parameters.

Why You Should Remove Them

This is a quick win that removes a completely unnecessary information leak. Here’s why it matters for your hack prevention strategy:

The author name confirms your SEO plugin. Knowing you use Yoast SEO tells an attacker which plugin vulnerabilities to probe. Yoast has had documented security issues in the past. So has Rank Math. So has every popular SEO plugin. If an attacker knows which one you’re running, they don’t need to guess – they just check the latest CVE database for known exploits targeting that plugin.

The XSL stylesheet adds unnecessary requests. The custom stylesheet is an additional file that browsers load when rendering the sitemap. It serves no purpose for search engines and adds an extra HTTP request. Removing it produces a cleaner, faster-loading sitemap.

It contributes zero SEO value. Google processes the XML structure of your sitemap, not the visual formatting. The author name, branding, and stylesheet have no impact whatsoever on how Google crawls, indexes, or ranks your pages. Removing them changes nothing for search engines.

It’s the last piece of a complete sitemap cleanup. If you’ve already enabled Change Paths in Sitemap XML to replace WordPress directory paths, removing the author and style is the final step to ensure your sitemap reveals nothing about your WordPress setup.

How to Remove Authors and Style from Sitemap XML

Two toggles, both in the same settings panel.

  1. Go to WP Ghost > Tweaks > Feed & Sitemap.
  2. Switch on Change Paths in Sitemap XML (required first – this loads sitemap support in WP Ghost).
  3. Switch on Remove Plugin Authors & Style in Sitemap XML.
  4. Click Save to apply.

Important: You must enable Change Paths in Sitemap XML first. The author/style removal option depends on it. If you only enable the removal toggle without the path change toggle, it won’t take effect.

What Happens After You Remove Authors and Style

Visit yourdomain.com/sitemap.xml in a private browser window after clearing your cache. Instead of a branded, styled interface with plugin credits, you’ll see a clean, standard XML sitemap:

The plugin author name is gone. No “Generated by Yoast SEO,” no “Powered by Rank Math,” no plugin branding of any kind. The sitemap is anonymous raw XML.

The XSL stylesheet is removed. The sitemap renders as plain XML in the browser instead of a formatted, branded page. This is how Google actually processes it – you’re now seeing what Google sees.

Image paths use your custom URLs. Because you enabled “Change Paths in Sitemap XML” as a prerequisite, all image URLs in the sitemap now reference your custom paths instead of /wp-content/uploads/. Combined with the author removal, your sitemap reveals nothing about WordPress.

SEO is completely unaffected. Google processes the same XML structure, the same URLs, the same content. The only things removed are visual formatting and plugin branding that Google never reads in the first place.

Frequently Asked Questions

Will removing the sitemap author affect SEO?

No. Google processes the XML data in your sitemap, not the author name or XSL stylesheet. These are purely cosmetic additions that serve no indexing purpose. Removing them has zero impact on how Google crawls or ranks your pages.

Which SEO plugins does this work with?

WP Ghost removes author names and styling from all major sitemap generators: Yoast SEO, Rank Math, All in One SEO, SEOPress, The SEO Framework, and WordPress’s built-in sitemap. It intercepts the sitemap output regardless of which plugin generates it.

Why do I need to enable “Change Paths in Sitemap XML” first?

The author/style removal feature works within WP Ghost’s sitemap processing pipeline. Enabling “Change Paths in Sitemap XML” activates that pipeline. Without it, WP Ghost doesn’t intercept the sitemap output, so the removal toggle has nothing to process. Think of it as the first toggle enabling the engine and the second one enabling a specific feature within it.

Does this work with WooCommerce product sitemaps?

Yes. WooCommerce products, categories, and images in the sitemap are all processed by WP Ghost. Plugin author names and XSL styles are removed from all sitemap outputs, including WooCommerce product sitemaps. WP Ghost is fully compatible with WooCommerce.

Does WP Ghost modify any files?

No. WordPress generates the sitemap dynamically. WP Ghost filters the output at runtime before it reaches the browser. No files are created, edited, or deleted. Disabling the option instantly restores the original sitemap appearance with plugin branding and styling.

Complete your sitemap and feed security:

John Darrel

Change the WordPress Database Prefix for Security

Replace the default wp_ database prefix with a random one to protect against SQL injection…

1 year

Customize WordPress Uploads Directory | WP Ghost

Change the WordPress uploads directory path with WP Ghost (rewrite rules, no files moved) or…

1 year

WP Ghost and WP Rocket Cache Setup Guide

Configure WP Ghost with WP Rocket cache. Enable file optimization, Change Paths in Cache Files.…

1 year

Why is website security important?

https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…

1 year

Is WordPress Website Easily Hacked?

The security of your WordPress site depends on multiple factors, such as the strength of…

1 year

Set Up WordPress 2FA with Mobile Authenticator Apps

Step-by-step guides to connect WP Ghost 2FA with Google Authenticator, Authy, Microsoft Authenticator, or LastPass.…

1 year