Justify for Paragraph Block

外掛說明

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

  • Simple one-click text justification
  • Works seamlessly with the default Gutenberg paragraph block
  • Optional typography settings for justified paragraphs
  • Lightweight and performance-friendly

Typography Settings

From version 1.1.0, the plugin includes optional typography settings for justified paragraph blocks. 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)
  • 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

Typography settings affect only justified paragraph blocks and are applied both in the editor and on the frontend.

Credits

Developed by Nick Digital Projects.

Recommendations

  • Ensure you’re using WordPress 5.0 or later
  • PHP 7.0 or higher is recommended

螢幕擷圖

  • Justify alignment button in the paragraph block toolbar
  • Example of justified text in a paragraph block

安裝方式

  1. Upload the ‘justify-for-paragraph-block’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use the new justify alignment option in the paragraph block toolbar

常見問題集

How do I use the justify alignment?

Simply click on the justify icon in the paragraph block toolbar to align the text.

Does this work with all themes?

Yes, the plugin uses standard WordPress alignment classes and should work with most themes.

Can I use this with other block types?

Currently, this plugin is designed specifically for paragraph blocks.

使用者評論

2026 年 2 月 15 日
I have no idea why is this plugin even needed: text justification should be as basic functionality as any text alignment. However, it’s not. For some reason we needed this hero who created this super simple plugin which saves us from having only left-aligned texts on our websites. I have no idea what can I say more: the plugin requires two clicks to work: one on “install” button and the second on “enable” button. And that’s all. It just works perfectly. Thank you!
2025 年 9 月 4 日 1 則留言
This plugin does exactly what it promises, it restores the justify option to paragraph blocks inside the WordPress editor with no extra settings needed. It just works.And it’s one of the lightest plugins I have seen in a long time.We should have been given the choice on WordPress natively, and now, we do. And beautifully so, with a dedicated icon on the toolbar that even changes its styling when it has been applied.Brilliant work.Thank you for creating this!
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Justify for Paragraph Block〉的開發相關工作。

參與者

將〈Justify for Paragraph Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.0

  • Added optional typography settings for justified paragraph blocks (hyphenation and word-spacing presets/custom)
  • Applied typography settings consistently in both the block editor and the frontend
  • Kept the plugin scope limited to the core Paragraph block

1.0.0

  • Initial release
  • Added justify alignment option for paragraph blocks