nnax ReadMore

外掛說明

nnax ReadMore helps editors keep posts and pages compact while still making additional content available on demand.

Use the shortcode [nnax_readmore]...[/nnax_readmore] to hide longer sections behind a toggle button. Visitors can expand and collapse the content without requiring a bundled frontend framework.

Main features

  • Namespaced shortcode [nnax_readmore] for expandable content blocks
  • Dedicated ReadMore block for Gutenberg and a button above the editor in the Classic Editor
  • Toggle button text between “Mehr anzeigen” and “Weniger anzeigen”
  • Configurable button CSS classes in plugin settings
  • Role-based visibility and editing permissions for the plugin admin area
  • Toggle behavior works without any bundled frontend library
  • Clean uninstall behavior for plugin options

Requirements

  • WordPress 6.0 or higher
  • PHP 7.4 or higher

Usage

Use this shortcode in content:

[nnax_readmore]Your hidden content[/nnax_readmore]

In Gutenberg, a dedicated ReadMore block is available in the block inserter. In the Classic Editor, the button is available above the editor. In both cases, a dialog opens for entering the hidden content.

Uninstallation

When the plugin is deleted, uninstall.php removes the options nnaxreadmore_button_classes, nnaxreadmore_general_settings, and nnaxreadmore_role_access.
In multisite, cleanup runs per site and also removes a possible network option.

Known Limitations

  • The plugin focuses on the shortcode toggle behavior only.
  • Runtime compatibility with the minimum supported WordPress version, multisite setups, and broader theme sets must be validated in the target project environment.

螢幕擷圖

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • ReadMore Fügt einen ReadMore-Shortcode als Block ein.

安裝方式

  1. Upload the plugin folder nnax-readmore to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Open the nnax ReadMore menu and configure button classes if needed.

常見問題集

Does the plugin require UIkit from the theme?

No. The plugin works independently and does not require UIkit from the theme.

Does the plugin store personal data?

No personal profile data is stored by default. The plugin stores technical settings options for button classes and role-based access configuration.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈nnax ReadMore〉的開發相關工作。

參與者

〈nnax ReadMore〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈nnax ReadMore〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.4

  • Removed the manual load_plugin_textdomain() call to resolve the current Plugin Check warning and rely on WordPress translation loading.
  • Expanded deploy exclusions so Git and development files are no longer uploaded via FTP, SFTP, or Rsync workflows.

1.0.3

  • Updated Plugin URI and documentation URLs to expertonaut.de.
  • Replaced the default UIkit button classes with a custom ‘nnax-readmore-btn’ class.
  • Styled the frontend button to match the nnax backend UI design system (colors, borders, gradients, and hover transitions).
  • Added automatic migration routines to convert existing configurations from ‘uk-button uk-button-default’ to the new ‘nnax-readmore-btn’.
  • Added options in the display settings page to customize “Mehr anzeigen” and “Weniger anzeigen” texts globally, with override capability in individual shortcode usages via the ‘label_more’ and ‘label_less’ attributes.
  • Updated the admin menu icon to readmore-menuicon.png.

1.0.2

  • Added standard block.json configuration for full WordPress 7.0 iframe-editor compatibility.
  • Replaced deprecated jQuery Thickbox modal in Classic Editor with high-performance native HTML5 API.
  • Enforced precise select font sizing (12px) to override WordPress Core layout adjustments.
  • Raised minimum required WordPress version to 6.0 and validated tested support up to 7.0.

1.0.0

  • Initial release.
  • ReadMore shortcode and toggle behavior.
  • Dedicated Gutenberg ReadMore block and Classic Editor insert button.
  • Toggle integration and settings page.
  • Uninstall cleanup for plugin options.