
內容簡介
Whitespace Fixer for XML Sitemap 是一款輕量級的外掛,能自動移除 WordPress 輸出中的不必要空格或空白行,確保 XML 地圖和 RSS 源的有效性,避免因空白造成的錯誤。
【主要功能】
• 自動移除 XML 輸出前的空白
• 修正「XML declaration not at start」錯誤
• 與 Rank Math、Yoast SEO 等外掛相容
• 兼容所有 WordPress 佈景主題和主機
• 在背景靜默運行,無需設定
外掛標籤
開發者團隊
② 後台搜尋「Whitespace Fixer for XML Sitemap」→ 直接安裝(推薦)
原文外掛簡介
Whitespace Fixer for XML Sitemap is a lightweight plugin that automatically removes unwanted spaces or blank lines before the XML declaration () 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
Live Demo
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.
