The slabText plugin enables you to predefine the word combinations used when slabtexting a headline.
Download the php file and add it to a folder named slabtext
, itself resident
within the /_add-ons/
folder.
Example Tag:
{{ slabtext title="{{ title }}" }}
Example Template Use:
<h2><a href="{{ url }}">{{ slabtext title="{{ title }}" }}</a></h2>
The text to be given the slabtext treatment
title="{{ title }}"
Default: |
The delimiter to use when splitting the text
delim="^"
Remember to actually add the slabtext.js
file to your template and call the
$.slabText
method to initiate the script as described in
the demo page.