Expander

Description

Minimalistic accordion plugin. Text expander plugin. Just like popcorn. Click and pop.

Use it to toggle (show/hide) blocks of text, by inserting a simple shortcode:

[wpex more="Read more" less="Read less"]hidden text[/wpex]

Replace “Read more” and “Read less” with your desired text. Use .wpex-link class to style the links.

Use a different class to style the links by using a custom class:

[wpex class="wpex-link" more="Read more" less="Read less"]hidden text[/wpex]

Installation

  1. Upload the plugin folder to your /wp-content/plugins/ directory
  2. Activate the plugin via the Plugins menu in WordPress
  3. Create and publish a new page and add this shortcode: [wpex more="Read more" less="Read less"]hidden text[/wpex]
  4. If you upgraded from 0.1.x change your [wpex Read more] to [wpex more="Read more" less="Read less"]

Reviews

Simple and good!

This tool is very simple, but it does exactly what it should do. What is missing is a button in the editor to insert an expander. Possibly a css-style and animations. But that does not mandatory have to be. It is as it is, very well

Works great

Works as it should, and Ciprian was extremely helpful and efficient in helping to fix a niggling problem with the plugin on our site.
Many thanks.

Amazing plugin

Outstanding plugin for templates that doesn’t have the “read more” option. I really appreciate its simplicity and especially the fact that does not generate any conflicts with other plugins. I highly recommend it! It’s the best I tried so far.

Read all 19 reviews

Contributors & Developers

“Expander” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Expander” into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.

Changelog

0.3.3

  • FIX: Removed old compatibility code for embedded shortcodes
  • UPDATE: Removed version constant, as the plugin doesn’t have a dedicated settings page

0.3.2

  • UPDATE: Updated formatting and removed a line break in the expander string

0.3.1

  • UPDATE: Updated tags and URLs

0.3.0

  • UPDATE: Added widget shortcode filter
  • UPDATE: Minified and moved Javascript to footer
  • FEATURE: Added custom link class (@dccharron)

0.2.5

  • UPDATE: Updated WordPress compatibility

0.2.4

  • GENERAL: Added license link
  • GENERAL: Added donate link

0.2.3

  • FIX: Fixed paragraphs exploding from parent div
  • FIX: Fixed quotes not being properly escaped

0.2.2

  • FIX: Fixed shortcode nesting

0.2.1

  • FIX: Fixed wpautop() issue
  • FEATURE: Added internal version

0.2.0

  • FEATURE: Added “Read more”/”Read less” feature
  • IMPROVEMENT: New shortcode structure (see plugin description)
  • IMPROVEMENT: Removed filters
  • PERFORMANCE: Moved shortcode creation to plugin init()
  • PERFORMANCE: Merged all Javascript code

0.1.1.2

  • Checked WordPress 3.8-beta compatibility

0.1.1.1

  • First public release