Linux 软件免费装

Text Orphans Remover

开发者 jessenaylor
更新时间 2026年1月5日 11:29
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv3 or later
版权网址: 版权信息

标签

responsive frontend design typography readability orphan widows nomoreorphans no more orphans

下载

1.0.1

详情介绍:

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.

更新日志:

1.0.1 1.0.0