Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

This course is the most refreshing take on teaching design that I've come across.

— Mikaël Sévigny, Developer

widont Modifier

Attempts to prevent widows (a line with a single word) in a string by adding non-breaking spaces between the last two words of each paragraph.

The first parameter allows you to customize the number of words to add non-breaking spaces to.

string: I Just Want Pretty Headlines and Sentences
{{ string | widont }}
{{ string | widont(4) }}
{{ Statamic::modify($string)->widont() }}
{{ Statamic::modify($string)->widont(4) }}
I Just Want Pretty Headlines and Sentences
I Just Want Pretty Headlines and Sentences
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →