Ready to get started?Download WordPress

Plugin Directory

Better WP ShowHide Elements

Adds Javascript for you to hide or show what ever ID you want with a mouse click.

View demo: http://akenn.org/projects/wp-showhide/

<a onclick="wp_showhide.main(this, 'myId1')" href="javascript:void(0)">["Show Text", "Hide Text", "visible"]</a> <div id="myId1">Content goes here</div>

The function inside the link's onclick method includes the name of the div you want to show or hide (in this case myId1). The text inside the link includes the text that will be shown when a div is hidden or shown. The first set of quotes contains the text that will be displayed when the div's state is "display=none". The second set of quotes contains text for when the div is currently visible. The last set contains the initial state of the div (either "visible" or "hidden").

Requires: 2.0.2 or higher
Compatible up to: 3.8.3
Last Updated: 2014-4-6
Downloads: 2,334


5 stars
5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.