transcript_toggler

transcript_toggler() — display a link that toggles display of comic transcript

Description

This tag displays a link that, when clicked, shows or hides the transcript. By default, the transcript starts off hidden, although parameters to this tag can change that. This tag is one of the few that use JavaScript, so JavaScript must be enabled in the reader's browser in order to work. In addition, this tag must be in the WordPress loop of the same post whose transcript it toggles.

The toggler link itself is given one of two CSS classes: toggler_on when the transcript is being displayed, and toggler_off when it is being hidden.

Arguments

argument type default description
state string hidden Set to hidden if the transcript should start out hidden, shown if the transcript should be shown by default
text string Transcript Text to display in the link