Accordion – Auto Show Posted in : Responsy WP philipjamesbarnesParticipant 6 August 2012 at 23:29 #784 Hi Guys, On the accordion shortcode, how can I say show first pane automatically? I’ve tried current=”true” and current=”yes” as well as selected=”yes” This topic was modified 13 years, 8 months ago by philipjamesbarnes. ahmetsaliKeymaster 7 August 2012 at 01:42 #790 Hi, paste the code below to the “External Stylesheet/JavaScript” box under “Style tab” ; <script> $(function() { $('.accordion-group:first .accordion-toggle').trigger('click'); }); </script> philipjamesbarnesParticipant 7 August 2012 at 02:08 #798 Hi Ahmet, This doesn’t work for me. Any ideas why not? I did as you said, but it’s had no impact. Phil philipjamesbarnesParticipant 9 August 2012 at 00:15 #842 Hello – any ideas on this for me? I want to keep the first pane of accordion open, but the standard shortcode doesn’t let me? Phil philipjamesbarnesParticipant 19 August 2012 at 00:35 #1088 Guys any ideas on this? One of the last things I’m looking for. Have one accordion pane open initially ahmetsaliKeymaster 22 August 2012 at 15:14 #1128 Hi, i just tested the code and it works fine on my side. – Please make sure: you paste the code to the “External Stylesheet/JavaScript” box under “Style tab” , not “Custom CSS” box. philipjamesbarnesParticipant 22 August 2012 at 15:40 #1135 Hi Ahmet, This is working for me now (must have been the update). However, to throw spanner in the works, I’ve a page where I do want accordion to show first pane, and another where I don’t. Am I out of luck? I thought you could manipulate the short code with something like this – current=”true” or current=”yes” or selected=”yes” Phil ahmetsaliKeymaster 23 August 2012 at 14:31 #1166 Hi, i see, good point, added to update list, thanks for the feedback JaakkoMediaParticipant 17 July 2014 at 13:58 #15236 Hi, Is it possible to show the first pane of only the second accordion (“Standaard”) on http://www.videobird.nl/tarieven/? Thanks, Jaakko ahmetsaliKeymaster 20 July 2014 at 00:08 #15262 @JaakkoMedia try adding this to External JS box jQuery(document).ready(function($) { $('.span4:nth-child(2) .accordion-group:first-child').addClass('active').find('.accordion-body').show(); }); JaakkoMediaParticipant 20 July 2014 at 00:39 #15266 Awesome, it works! Thnx ahmetsali! Viewing 11 posts - 1 through 11 (of 11 total) The forum ‘Responsy WP’ is closed to new topics and replies.