توضیحات
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’;
نصب
- Upload the plugin folder to
/wp-content/plugins/(or upload the ZIP via Plugins Add New). - Activate “Text Orphans Remover”.
- 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.TextOrphansRemoverSelectorbefore the script runs (e.g. in your theme’s footer or a small custom plugin). -
No. The script updates text nodes only and does not rewrite your HTML markup.
نقد و بررسیها
نقد و بررسیای برای این افزونه یافت نشد.
توسعه دهندگان و همکاران
“Text Orphans Remover” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.
مشارکت کنندگانترجمه “Text Orphans Remover” به زبان شما.
علاقه مند به توسعه هستید؟
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
گزارش تغییرات
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.