WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Shortcodes
[resolved] shortcode accordion - all closed on page load? (4 posts)

  1. jhguynn
    Member
    Posted 1 year ago #

    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/

  2. Synved
    Member
    Plugin Author

    Posted 1 year ago #

    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 ;)

  3. foxicus
    Member
    Posted 6 months ago #

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

  4. jhguynn
    Member
    Posted 6 months ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic