This plugin creates a shortcode to add an expandable box to show and hide the selected content on a post or page with customisable show and hide links
The plugin comes with two shortcodes for use inside a posts and pages; these are: [dropdown_box] and [dropdown_box_toggle_all].
dropdown_box is used to add a single dropdown box to your content, it supports 4 attributes:
Your content is added inside the shortcode, for example [dropdown_box]This is my content inside the dropdown box[/dropdown_box]
The content insider the box is open to standard WordPress formatting.
dropdown_box_toggle_all is used to add links to show/hide all drop down boxes on the page, this shortcode can be used in more than one place on the page and has 3 attributes
This shortcode is self closing, so can be written as [dropdown_box_toggle_all /] or [dropdown_box_toggle_all].
This plugin also adds a small CSS file (352 bytes) to wp_head to control the styling.
As of version 2, the plugin contains a menu for setting default options for the plugin and the attributes used in the plugin support HTML.
A simple usage example to get you going.
dropdown_box_toggle_all [dropdown_box_toggle_all hide="Hide All" show="Show All" separator="|" /]
dropdown_box [dropdown_box expand_text="Information" show_more="More" show_less="Less" start="hide"]This is my content and it will start hidden[/dropdown_box]
Requires: 3 or higher
Compatible up to: 3.5.2
Last Updated: 4 years ago
Active Installs: 2,000+
Got something to say? Need help?