Title: Text Orphans Remover
Author: Jesse Naylor
Published: <strong>2026 年 1 月 5 日</strong>
Last modified: 2026 年 1 月 5 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/text-orphans-remover.svg)

# Text Orphans Remover

 作者：[Jesse Naylor](https://profiles.wordpress.org/jessenaylor/)

[下载](https://downloads.wordpress.org/plugin/text-orphans-remover.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/text-orphans-remover/#description)
 * [评价](https://cn.wordpress.org/plugins/text-orphans-remover/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/text-orphans-remover/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/text-orphans-remover/#developers)

 [支持](https://wordpress.org/support/plugin/text-orphans-remover/)

## 描述

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’;

## 安装

 1. Upload the plugin folder to `/wp-content/plugins/` (or upload the ZIP via Plugins
    Add New).
 2. Activate “Text Orphans Remover”.
 3. Done — it runs automatically on the front-end.

## 常见问题

### Does it work in wp-admin?

No. This plugin never loads in the admin area.

### Can I target different elements?

Yes. Set `window.TextOrphansRemoverSelector` before the script runs (e.g. in your
theme’s footer or a small custom plugin).

### Will it break inline HTML tags (links, strong, em)?

No. The script updates **text nodes** only and does not rewrite your HTML markup.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Text Orphans Remover」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Jesse Naylor ](https://profiles.wordpress.org/jessenaylor/)

[帮助将「Text Orphans Remover」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/text-orphans-remover)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/text-orphans-remover/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/text-orphans-remover/)，或通过[RSS](https://plugins.trac.wordpress.org/log/text-orphans-remover/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/text-orphans-remover/)。

## 更新日志

#### 1.0.1

 * Rebuilt as a minimal, professional plugin.
 * Keeps the original measurement-driven approach, but replaces spaces safely via
   text nodes (no innerHTML rewrites).
 * Expands default targeting beyond paragraphs.

#### 1.0.0

 * Original release.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**4 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/text-orphans-remover/)
 * 标签
 * [design](https://cn.wordpress.org/plugins/tags/design/)[orphan](https://cn.wordpress.org/plugins/tags/orphan/)
   [Readability](https://cn.wordpress.org/plugins/tags/readability/)[typography](https://cn.wordpress.org/plugins/tags/typography/)
   [widows](https://cn.wordpress.org/plugins/tags/widows/)
 *  [高级视图](https://cn.wordpress.org/plugins/text-orphans-remover/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/text-orphans-remover/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/text-orphans-remover/reviews/)

## 贡献者

 *   [ Jesse Naylor ](https://profiles.wordpress.org/jessenaylor/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/text-orphans-remover/)