WordPress.org

Support

Support » Plugins and Hacks » [Resolved] shortcode accordion – all closed on page load?

[Resolved] shortcode accordion – all closed on page load?

  • Synved, I took your advice and rated your plugin (I gave you an earnest 5 star rating), and will preview your premium addons/themes and consider a purchase. I appreciate your hard work.

    I’m using your tab and accordion shortcode. I’d like all parts of the accordion to be closed on page load (rather than having the first open and all others closed). Can I accomplish this by modifying the shortcode? Or do I need to edit the plugin code itself? In any case, I’d appreciate some guidance.

    Many Thanks!

    http://wordpress.org/extend/plugins/synved-shortcodes/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Synved

    @synved

    There’s a parameter for that, collapse=”always”. It’s a good idea to check the documentation for the shortcodes when you edit them in the Shortcode Editor 😉

    Sorry to be an idiot, but how do I insert that collapse code in the custom editor?

    foxicus:

    Here is what a sample accordion shortcode will look like with the collapse=”always” added:

    [sections collapse=”always”]
    [section title=”Title 1″]
    Content 1
    [/section]
    [section title=”Title 2″]
    Content 2
    [/section]
    [/sections]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] shortcode accordion – all closed on page load?’ is closed to new replies.