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

WP Word Groups

Plugin for grouping words (derived from WP Typography plugin)

by strarsis · github.com/strarsis/wp-typography-groups

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/strarsis/wp-typography-groups/archive/refs/heads/master.zip

Readme

wp-typography-groups

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.

Read the full README on GitHub →