WP Manifestindependent plugin directory
manifest / content / wp-typography-groups

WP Word Groups

Plugin for grouping words (derived from WP Typography plugin)

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/strarsis/wp-typography-groups/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Plugin for grouping words (derived from WP Typography plugin)

Installation

  1. Download the zip for this repository.
  2. Extract the zip into plugin folder in plugins/ of WordPress site.
  3. Run composer install inside the plugin directory.
  4. Activate the plugin in WordPress site backend.
  5. Ensure that .avoidwrap{display:inline-block} is available as style on site frontend/theme.

TODO

Configure the list of text fragments that should stay together (https://github.com/strarsis/wp-typography-groups/blob/master/class-typography-groups.php#L34). E.g. 'New York' and 'Apple iPhone'.

Details

The text fragments and individual words (delimited by space) are wrapped into <span> elements (avoidwrap class) which can be styled with display: inline-block;. This causes the browser to break these words only as last resort when available width becomes too scarce.