Install
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.zipNo 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
- Download the zip for this repository.
- Extract the zip into plugin folder in
plugins/of WordPress site. - Run
composer installinside the plugin directory. - Activate the plugin in WordPress site backend.
- 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.