跳到内容

Whitespace Fixer for XML Sitemap

v1.1.1

Turbo Addons · 2025年8月6日 上架

Fixes XML declaration errors in sitemaps and RSS by removing leading whitespace. Just activate, no setup required.

正在使用
300+
评分
5.0 / 5
累计下载
3,134
最近更新
2026年9月20日
3 条评价需要 WordPress 5.2+已测试到 7.1.5PHP 7.2+

截图

Browser error message without the plugin (before fix)
Browser error message without the plugin (before fix)
Browser error message without the plugin (before fix)
Browser error message without the plugin (before fix)
XML sitemap loads cleanly after plugin activation (no errors)
XML sitemap loads cleanly after plugin activation (no errors)

Whitespace Fixer for XML Sitemap is a lightweight plugin that automatically removes unwanted spaces or blank lines before the XML declaration (<?xml version="1.0" ... ?>) in your WordPress output.

This small whitespace, often caused by themes or plugins, breaks XML feeds and causes browser or validator errors like:

XML declaration allowed only at the start of the document

With this plugin activated, the output buffer is cleaned before anything is sent to the browser—ensuring your sitemaps and RSS feeds are valid and readable by search engines like Google.

✅ Works with:
– Rank Math
– Yoast SEO
– Other Seo Tools
– All themes and plugins

No settings page. No configuration. Just activate and forget.

Features

  • Automatically removes leading whitespace from XML output
  • Fixes “XML declaration not at start” errors
  • Works with Rank Math, Yoast, and other sitemap plugins
  • Compatible with any WordPress theme or hosting
  • Runs silently in the background

License

Whitespace Fixer for XML Sitemap is licensed under the GNU General Public License v2 or later.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums