WordPress.org

Plugin Directory

Content Reveal

Content Reveal allows you to easily hide and reveal WordPress content, whether it's in the sidebar or in a post or page.

After searching for a method to hide content on our own site's sidebar we found that most of the solutions involved using widgets (which often provide less functionality compared to their direct function call equivalents). As well, they often make use of Scriptaculous, jQuery or mooTools to provide effects, but often add complexity and bloat.

We therefore wrote Content Reveal - it doesn't use any fancy effects, just some simple JavaScript. And it doesn't use widgets. A click on a heading causes content below to hide or reveal itself. You can add a button image too to indicate what state it is in (collapsed or revealed).

Features include...

  • Individual content states are saved via cookies (switchable via an options screen)
  • URL and parameter options to override cookie options
  • Ability to specify own icons for collapsing/revealing content
  • Title can change too depending on current content state
  • Graceful "fallback" if the visitor doesn't have JavaScript switched on - all text is revealed and any button images are removed
  • Option to show title seperately
  • Additional shortcode to output cookie storage length - useful for adding to a cookie policy document
  • Support for Do Not Track
  • XHTML compliant output*
  • Fully internationalized ready for translations

For more information and advanced options please read the "Other Notes" tab.

  • Use of the short code, depending on how it's used, can break this.

Requires: 3.3 or higher
Compatible up to: 4.5.4
Last Updated: 5 months ago
Active Installs: 1,000+

Ratings

4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,3,3
0,1,0 100,1,1
100,1,1
50,2,1
100,1,1
100,1,1
100,2,2 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
0,1,0
0,1,0
100,1,1
100,1,1