Text Toggle

Toggle All Text Blocks

The second part of this plugin is the tt_all shortcode.

This shortcode creates a jQuery-mapped link that alternately shows and hides all content defined by the tt shortcode throughout the given page or post. This singleton shortcode does not require any parameters or content.

The shortcode creates a standalone link that triggers a jQuery function to do all the work. This jQuery function reads the display status of the ‘hide’ indicator character of the parent link, which is initially hidden, and thereby determines whether to show or hide the indicator characters and the text boxes.

This shortcode may be placed anywhere on the page and placed multiple times on the same page. Because of the script and style file queuing functionality, only one instance of each file will be added to the page.

The short URL of the present article is: http://www.terryobrien.me/kUWob

Page 4 of 7
First | Prev | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next | Last
View All