WP Word Groups
Plugin for grouping words (derived from WP Typography plugin)
★ 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.zipReadme
wp-typography-groups
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.