Text Orphans Remover
v1.0.1Jesse Naylor · 2026年1月5日 上架
Prevents typographic “orphans” by replacing the final breaking space with a non‑breaking space in common text blocks (front‑end only).
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 461
- 最近更新
- 2026年1月5日
需要 WordPress 6.0+已测试到 6.9.12PHP 7.4+
贡献者
Text Orphans Remover (a.k.a. #NoMoreOrphans™) improves the visual quality of long-form, responsive text by preventing “orphan” words on the last line.
This plugin adds a lightweight script on the front-end only (never in wp-admin). It measures each text block and, when appropriate, replaces the last breaking space with a non‑breaking space.
Default processed elements:
p, li, h1–h6, blockquote, figcaption, dd, dt
You can override the selector via JavaScript:
window.TextOrphansRemoverSelector = ‘p, li, .my-class’;