Developers
philbuchanan |
Download Stats
Today | 39 |
Yesterday | 66 |
Last Week | 339 |
All Time | 161,258 |
Accordion Shortcodes is a simple plugin that adds a few shortcodes for adding accordion drop-downs to your pages.
The accordions should blend seamlessly with your theme. However, you may want to edit your theme's main stylesheet in order to add some custom styling (see below for sample CSS).
Features
- Adds two shortcodes for adding accordions to your site
- Supports multiple accordions with individual settings on a single page
- Two buttons in the TinyMCE editor make it easy to add and configure the accordion shortcodes
- Responsive
- No default CSS added
- Only adds JavaScript on pages that use the shortcodes
- Support for item IDs and direct links
- Accessible (for users requiring tabbed keyboard navigation control)
Optional Features
- Open the first accordion item by default
- Open all accordion items by default
- Disable auto closing of accordion items
- Manually close items by clicking the title again
- Scroll page to title when it's clicked open
- Set the HTML tag for the title element
- Change the semantic structure of your accordions (advanced)
The Shortcodes
The two shortcodes that are added are:
[accordion]...[/accordion]
and
[accordion-item title=""]...[/accordion-item]
Basic Usage Example
[accordion] [accordion-item title="Title of accordion item"]Drop-down content goes here.[/accordion-item] [accordion-item title="Second accordion item"]Drop-down content goes here.[/accordion-item] [/accordion]
This will output the following HTML:
Title of accordion item
Second accordion item
Releases (28 )
Version | Release Date | Change Log |
---|---|---|
2.4.2 | 2019-03-29 |
|
2.4.1 | 2019-03-19 |
|
2.4.0 | 2019-03-12 |
|
2.3.3 | 2017-05-28 |
|
2.3.2 | 2016-12-22 |
|
2.3.1 | 2016-11-03 |
|
2.3.0 | 2016-04-09 |
|
2.2.6 | 2016-01-10 |
|
2.2.5 | 2015-12-17 |
|
2.2.4 | 2015-08-18 |
|
2.2.3 | 2015-05-20 | FIXED: A bug where the content editor would break in custom post types. |
2.2.2 | 2015-05-20 | |
2.2.1 | 2015-05-13 | FIXED: A bug where setting both scroll and openfirst would scroll the window without user interaction. |
2.2 | 2015-05-03 |
|
2.1.1 | 2014-12-29 |
|
2.1 | 2014-12-19 |
|
2.0.1 | 2014-09-05 |
|
2.0 | 2014-08-05 |
= |
1.3.1 | 2014-07-02 |
|
1.3 | 2014-06-05 |
|
1.2.4 | 2014-04-21 |
|
1.2.3 | 2014-03-14 |
|
1.2.2 | 2014-03-03 |
|
1.2.1 | 2014-02-20 |
|
1.2 | 2014-01-24 |
|
1.1.2 | 2014-01-23 | |
1.1.1 | 2014-01-23 | Added a link to plugin documentation from the plugins page for easy access. |
trunk | 2013-12-30 |