WordPress.org

Forums

Whistles
Can you close all accordions on initial page visit? (5 posts)

  1. mezzobella
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/plugins/whistles/

  2. Justin Tadlock
    WordPress God
    Plugin Author

    Posted 1 year ago #

    I created a new ticket for this:
    https://github.com/justintadlock/whistles/issues/1

  3. Jack
    Member
    Posted 1 year ago #

    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.

  4. Cathedral City Guide
    Member
    Posted 1 year ago #

    I would also love this feature. Ingenious plugin though.

  5. Jef Jones
    Member
    Posted 11 months ago #

    Hi,

    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
      {
      	border:none;
      	display:none;
      	margin:0;
      	padding:0;
      }

      Cheers,
      Jef.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Whistles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic