Skip to content

Kirby 5.0.4

$field->widont()

Avoids typographical widows in strings by replacing the last space with  

$field->widont(): Kirby\Content\Field

Return type

Kirby\Content\Field

This method modifies the existing $field object it is applied to and returns it again.

Examples

<?= $page->title()->widont() ?>