A very simple shortcode series to create a text area which can be hidden or displayed based on a click on the title. Text areas by default are hidden..
A very simple shortcode series to create a text area which can be hidden or displayed based on a click on the title. Text areas by default are hidden.
This shortcode series uses jquery functionality to a) determine which text areas are to be toggled and b) toggle them.
Basic use is to surround a block of text with the “[tt]” shortcode and specify a title parameter within the shortcode. The title will be shown on the page, preceeded by an indicator whether the associated text area is hidden (►) or shown (▼). Clicking the title link will toggle the display of the dependant text area, as well as toggle the indicator.
Groups of text areas can be shown or hidden at once through the “[tt_part]” and “[tt_all]” shortcodes.
The “[tt_part]” shortcode uses a required parameter named “class” that links it to all “[tt]” shortcodes and their associated text areas with the same class parameter. Clicking the “[tt_part]” title link will toggle all associated text areas and any “[tt_part]” shortcode links with the same class according to the status of the parent shortcode. Text areas of this section that are already displayed when the parent link is clicked will remain displayed, and vice versa with hidden text areas.
The “[tt_all]” shortcode will toggle all “[tt]” shortcode text areas, any intermediate “[tt_part]” links and any mirrored “[tt_all]” links, according to the status of the particular title link. Text areas that are already displayed when the overall link is clicked to display all the text areas will remain displayed, and vice versa with hidden text areas.
Both the “[tt_part]” and “[tt_all]” shortcodes may be placed anywhere on the web page and can be used multiple times on the same web page.
The “[tt]” shortcode has one required parameter and two optional parameters, plus the required content of the shortcode.
The “[tt_part]” short code has two required parameters; it does not use any content.
The “[tt_all]” short code has no parameters and it does not use any content.
Here is the Text Toggle wordpress plugin download link you can download and install to your Wordpress Website.
Hides the admin bar on the front-end by default, and adds a toggle to activate it.
Quickly toggle plugin activation status from the toolbar.
Insert an open/close toggle button on any list item. Simple list toggler has an easy to use editor button...
Toggle Comments allows you to turn globally WordPress comment functionality on or off.
Adds a grid/list view toggle to product archives
Hides widget content on page load then allows the user to toggle widgets open and closed by clicking...
Toggles the case of selected text
Toggle RuneScape Forum Colours
This extension will toggle password inputs to text
Adds keyboard controls to the twitch html5 player.
A simple extension that blurs out words you don't like
Text transformation tool
Toggle easily the FB News Feed on and off
Extension for hiding all of the text on a website, for appreciating the design
Toggle HTTP/HTTPS connection for current tab.
Use this extension to download answers from Quora.com as JPEG images, directly to your local drive -...
Creates a text-only version of almost any web page. Great...
Adds keyboard controls to the twitch...
Adds toolbar buttons to the customize toolbar window in...
Easily toggle the option to allow or not a website to use...
Toggle JavaScript engine on and off the easy way
Display history menu, tab list menu, bookmarks menu, toggle...
Edit web pages directly in Firefox!
Selected text on the web page reader with some additional...
Want to copy a part of text but this text is a link?
We'll...
Toggles open tabs automatically.