Support » Plugin: Whistles » Can you close all accordions on initial page visit?

  • Firstly… I’m enjoying this Plug In. I’m no expert but I’ve been able to make some changes to the CSS to fit with my theme. Question though… when I add a Whistle Group to a page, the first Whistle is always “open” in each group displaying the text under the header. Is there a setting somewhere that I can change to that all of the Whistles are “closed” when you first load the page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Justin Tadlock


    WordPress God

    I created a new ticket for this:

    I’m voting for this too 🙂
    I just added five accordions on one page, and all the first ones are open, while I only need the first one of the first accordion to be opened so that people know things can be opened and closed.

    I would also love this feature. Ingenious plugin though.


    I’d love this too. In the meantime, I used a workaround:

    • Create an empty Whistle called ‘Initial’ (or whatever you want)
    • Give it a slug starting with ‘1’ so that it appears at the top of each Whistle Group
    • Assign it to each Whistle Group that you require the default closed state.
    • Add the following CSS to hide the initial open Whistle in each Whistle Group:
    • .whistles-accordion .whistle-title:first-of-type,
      .whistles-accordion .whistle-content:first-of-type


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can you close all accordions on initial page visit?’ is closed to new replies.