Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Headline Modifier

Format the given string, usually a headline or title, with the modifier's built-in AP or MLA capitalization rules.

Accepts ap or mla as an argument. Defaults to ap if none is specified.

title: I see a bad-ass mother who don't take no crap off of nobody.
{{ title | headline('ap') }}
{{ Statamic::modify($title)->headline('ap') }}
I See a Bad-Ass Mother Who Don't Take No Crap Off of Nobody.
{{ title | headline('mla') }}
{{ Statamic::modify($title)->headline('mla') }}
I See a Bad-ass Mother Who Don't Take No Crap Off of Nobody.