Jump to content


Photo
- - - - -

Accordion

accordion

  • Please log in to reply
4 replies to this topic

#1 theTimHunter

theTimHunter

    Advanced Member

  • Members
  • 53 posts
  • LocationEarth-ish
  • Framework Version:Developer
  • Country: Country Flag

Posted 09 October 2012 - 06:48 PM

Hello,

I am working with the accordion feature. When the page loads, the first "accordion" is open. Is there a way to style it so that it is closed on load?

Please Login or Register to see this Hidden Content



Thanks in advance.

On a side note, I am sad that pagelines will not be at WordCamp Denver this weekend :(

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 09 October 2012 - 06:55 PM

Please remove the open="yes" attribute from your accordion code as show in the Accordion example here:

Please Login or Register to see this Hidden Content



#3 theTimHunter

theTimHunter

    Advanced Member

  • Members
  • 53 posts
  • LocationEarth-ish
  • Framework Version:Developer
  • Country: Country Flag

Posted 09 October 2012 - 07:30 PM

Thanks. I had the code from bootstrap, not paglines (ie, i didn't use the pl tags at all). I will make the change, thanks.

#4 theTimHunter

theTimHunter

    Advanced Member

  • Members
  • 53 posts
  • LocationEarth-ish
  • Framework Version:Developer
  • Country: Country Flag

Posted 09 October 2012 - 07:38 PM

That seems to work, but using the bootstrap code I was able to place a caret next to the text. Can I somehow do that with this shortcode?

#5 James B

James B

    Advocate

  • Moderators
  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 11 October 2012 - 01:14 AM

Hi there, yeah you can still insert a caret, just enter it inside the text you've wrapped with the shortcodes.

Eg: [pl_accordioncontent name="accordion" number="2" heading="^Title 2"]

Please Login or Register to see this Hidden Content







Also tagged with one or more of these keywords: accordion