plugin-icon

Justify for Paragraph Block

Adds justify text alignment option to paragraph blocks in the Block Editor with per-block typographic enhancements.
评级
5
版本
1.2.1
活跃安装
2K
最后更新
Jul 27, 2026
Justify for Paragraph Block

This lightweight plugin enhances the WordPress Block Editor by adding a justify text alignment option to paragraph blocks. Key features include:

  • Simple one-click text justification via the paragraph block toolbar
  • Per-block typographic options available in the block sidebar when a paragraph is justified:
    • Automatic hyphenation (hyphens: auto)
    • Word spacing presets (slightly larger / slightly smaller) and custom value
    • First-line indent (editorial / book style)
    • Drop cap (magazine style)
    • Justify mode (inter-word / inter-character)
    • Stretch last line (text-align-last: justify) — forces the last line to be full-width instead of short

Note: for line height control, use the native WordPress Paragraph block setting under Typography Line height. * Optional global typography settings as defaults (Settings Justify Paragraph) * Lightweight and performance-friendly

Per-Block Options

From version 1.2.0, when a paragraph block is justified, a “Justify Options” panel appears in the block sidebar (InspectorControls) with the following per-block settings:

  • Automatic hyphenation — Break long words at line endings to reduce large gaps in justified text
  • Word spacing — Presets: Default, Slightly larger, Slightly smaller, Custom value (with em/px/rem unit)
  • First-line indent — Indent the first line of each justified paragraph (editorial style)
  • Drop cap — Enlarge the first letter of the paragraph (magazine style)
  • Justify mode — Browser default, Inter-word, Inter-character
  • Stretch last line — Force the last line of the justified paragraph to be full-width instead of short

For line height, use the native WordPress Paragraph block setting (Typography Line height).

These options are applied per-block, so each justified paragraph can have different typographic settings.

Global Typography Settings

The plugin also includes optional global typography settings that act as defaults for all justified paragraphs. These settings are available under:

Settings Justify Paragraph Typography Settings

Available options include:

  • Justification mode
    • Standard (only text-align: justify)
    • Advanced (enables additional typographic enhancements as defaults)
  • Automatic hyphenation (hyphens: auto)
    • Allows compatible browsers to break long words at line endings to reduce large gaps in justified text
  • Adjust space between words
    • Presets: No change, Slightly larger, Slightly smaller
    • Custom value: numeric value plus unit (em, px, rem) for fine-grained control

Per-block settings override the global defaults when set.

Recommendations

  • Ensure you’re using WordPress 5.0 or later
  • PHP 7.0 or higher is recommended
免费基于付费套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 7.0.2
这个插件是可用的下载,适用于您的站点。