WP ShowHide Elements
Posted by Rosso on Понедельник, Январь 18, 2010 · Leave a Comment
Adds a Javascript for you to hide or show what ever ID you want, with a mouse click. You need to add some code to your theme to make it work. With this you can create dynamic menus that can easily be hidden or shown.
Install
- Upload the FOLDER ‘wp-showhide-elements’ to the /wp-content/plugins/
- Activate the plugin ‘WP ShowHide Elements’ through the ‘Plugins’ menu in admin
Usage
- Create a div to show / hide. Add an ID and name it whatever you want.
- Create an anchor and add the ID of your div into wp_show() function.
<p id="mytest">my text</p>
<a href="javascript:void(0);" onclick="wp_showhide('mytest')">my link</a>