Contributors: GamerZ, meyercr
Donate link: http://lesterchan.net/site/donation/
Tags: show, hide, content, visibility, press release, toggle
Requires at least: 3.0
Tested up to: 4.0
Stable tag: 1.04
Allows you to embed content within your blog post via WordPress ShortCode API and toggling the visibility of the cotent via a link.
By default the content is hidden and user will have to click on the "Show Content" link to toggle it. Similar to what Engadget is doing for their press releases. Example usage: [showhide type="pressrelease"]Press Release goes in here.[/showhide]
https://github.com/lesterchan/wp-showhide
http://dev.wp-plugins.org/browser/wp-showhide/i18n/
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appericiate it. If not feel free to use it without any obligations.
- NEW: remove dependency on inserted elements using id property to toggle, instead use jQuery relative functions. This removes the necessity to have unique "types" when there are multiple show/hides on the same page
- NEW: Added
.sh-link
and.sh-content
as a standard class name on top of the type specific class name. - NEW: Added do_shortcode() to allow shortcode to be parsed within ShowHide
- FIXED: Some theme uses
.hide
asdisplay: none
and hence I have changed.show
to.sh-show
and.hide
to.sh-hide
to advoid conflicts.
- NEW: Added additional
show
orhide
class to the link and content depending on the visiblity of the content to allow more precise CSS styling.
- FIXED: Initial Release
- Open
wp-content/plugins
Folder - Put:
Folder: wp-showhide
- Activate
WP-ShowHide
Plugin - No configuration is needed
-
By default, content within the showhide shortcode will be hidden.
-
Example:
[showhide]Press release content goes in here.[/showhide]
-
Default Values:
[showhide type="pressrelease" more_text="Show Press Release (%s More Words)" less_text="Hide Press Release (%s Less Words)" hidden="yes"]
-
You can have multiple showhide content within a post or a page, just by having a new type. (This requirement is now removed!)
-
Example:
[showhide type="links" more_text="Show Links (%s More Words)" less_text="Hide Links (%s More Words)"]Links will go in here.[/showhide]
-
If you want to set the default visibility to display.
-
Example:
[showhide hidden="no"]Press release content goes in here.[/showhide]
-
You can style the content via CSS that is generated by the plugin. Here is a sample of the generated HTML. Note that pressrelease is the default type.
<div id="pressrelease-link-1" class="sh-link pressrelease-link sh-hide">
<a href="#">
<span id="pressrelease-toggle-1">Show Press Release (4 More Words)</span>
</a>
</div>
<div id="pressrelease-content-1" class="sh-content pressrelease-content sh-hide" style="display: none;">Content</div>
- With the example above, here are the following styles you can use in your CSS:
.sh-link A { }
.sh-content { }
.pressrelease-link { }
.pressrelease-link.sh-hide A { }
.pressrelease-link.sh-show A { }
.pressrelease-content { }
.pressrelease-content.sh-hide { }
.pressrelease-content.sh-show { }
- Deactivate
WP-ShowHide
Plugin - Open
wp-content/plugins
Folder - Put/Overwrite:
Folder: wp-showhide
- Activate
WP-ShowHide
Plugin - No configuration is needed
N/A
- Show More - Press Release
- Hide More - Press Release
- Editor - Short Code
N/A