Making shortcodes for JQuery accordion and tabs
New J Shortcodes (version 1.302 and higher) just added support for JQuery accordion and tabs. While jtabs are already documented here I am still a bit lagging on documenting the rest.
So, here’s how you can use accordion shortcodes:
Full spec:
[ jaccordion size="xxxsmall|xxsmall|xsmall|small|*normal" theme="blitzer|cupertino|overcast|*smoothness|vader" active="*"]
Title 1::
This is first pane content
[jacc/]
Title 2::
This is second pane content
[jacc/]
Title 3::
This is third pane content
[/jaccordion]
active=”0″ – all panes initially closed (default).
active=”1″ – first pane initially opened, etc…
Please note: before using any theme beside ‘smoothness’ you need to enable it first via WordPress Admin -> JShortcodes -> General settings.
Example:
[ jaccordion size="xsmall" theme="cupertino" active="2"]
Title 1::
This is first pane content
[jacc/]
Title 2::
This is second pane content
[/jaccordion]
-
Categories
-
Articles
-
Calendar
May 2013 M T W T F S S « Feb 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -
Meta



