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

  1. jhguynn
    Posted 3 years 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!


  2. Synved
    Plugin Author

    Posted 3 years 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
    Posted 2 years ago #

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

  4. jhguynn
    Posted 2 years ago #


    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 title="Title 2"]
    Content 2

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Shortcodes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic