Jump to content


Photo
- - - - -

Accordions not working

pagelines accordions

Best Answer Rob , 06 February 2013 - 02:40 AM

Definitely, it's the use of ampersands and other code in the accordion name.

 

This works:

Without ampersand
[pl_accordion name="Admission_and_General"][pl_accordioncontent name="Admission_and_General" number="31" heading="Can I get government funding to take this program?" open="no"]
Absolutely! We have had a number of students that have received funding to not only take our program, but also start their business afterwards! <a href="/dog-training-school/loans-grants/"></a>Click here to read more.[/pl_accordioncontent]
 
[/pl_accordion]

 

This doesn't.

 

With Ampersand
[pl_accordion name="Admission &amp; General"][pl_accordioncontent name="Admission &amp; General" number="41" heading="Can I get government funding to take this program?" open="no"]
Absolutely! We have had a number of students that have received funding to not only take our program, but also start their business afterwards! <a href="/dog-training-school/loans-grants/">Click here to read more</a>.[/pl_accordioncontent]
 
[/pl_accordion]

 

The number must also not be replicated on the page.  Each number value must be unique.
 

Go to the full post


  • This topic is locked This topic is locked
7 replies to this topic

#1 Steve Webb

Steve Webb

    Member

  • Members

  • 22 posts
  • LocationCANADA
  • Framework Version:Current
  • Country: Country Flag

Posted 05 February 2013 - 11:57 PM

Hi there,

 

I am having trouble with the accordions on one page:

 

Please Login or Register to see this Hidden Content


 
Just the accordions at the top of this page are not working.  They won't open or close.  The second and subsequent 'banks' or sections of accordions works fine, and I cannot find any mistakes in the accordions' code.
 
I'm wondering if you can help me get them working again, as they were indeed working once upon a time.

 

Thanks so much.


  • RobertGed likes this

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 06 February 2013 - 01:38 AM

Hi,

 

It's possible something has affected the code, as only the top group is failing, and all the rest work fine.

 

You may want to:

1.  Check the code to make sure it's the same as the accordions below.  If not, adjust accordingly. If so....

2.  Wrap the top group in [pl_raw]accordion shortcode[/pl_raw]



#3 Steve Webb

Steve Webb

    Member

  • Members

  • 22 posts
  • LocationCANADA
  • Framework Version:Current
  • Country: Country Flag

Posted 06 February 2013 - 01:49 AM

Hi Rob,

 

Thanks for the reply.

I have checked the code and I cannot find any errors.

I tried wrapping it in the pl_raw code and still nothing.

 

Here is the code I am having trouble with:

 

 

 

Please Login or Register to see this Hidden Content

Thanks so much for your help.



#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 06 February 2013 - 02:19 AM

I tested it here:

Please Login or Register to see this Hidden Content

 

I also added default code from the demo, setting it to "no" so that it would drop down, as desired.  The demo works fine, but your code doesn't.  Obviously, there's something in that code which is amiss.

 

It could be as simple as the &amp; in the title. I'm testing that next.



#5 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 06 February 2013 - 02:40 AM   Best Answer

Definitely, it's the use of ampersands and other code in the accordion name.

 

This works:

Without ampersand
[pl_accordion name="Admission_and_General"][pl_accordioncontent name="Admission_and_General" number="31" heading="Can I get government funding to take this program?" open="no"]
Absolutely! We have had a number of students that have received funding to not only take our program, but also start their business afterwards! <a href="/dog-training-school/loans-grants/"></a>Click here to read more.[/pl_accordioncontent]
 
[/pl_accordion]

 

This doesn't.

 

With Ampersand
[pl_accordion name="Admission &amp; General"][pl_accordioncontent name="Admission &amp; General" number="41" heading="Can I get government funding to take this program?" open="no"]
Absolutely! We have had a number of students that have received funding to not only take our program, but also start their business afterwards! <a href="/dog-training-school/loans-grants/">Click here to read more</a>.[/pl_accordioncontent]
 
[/pl_accordion]

 

The number must also not be replicated on the page.  Each number value must be unique.
 



#6 Steve Webb

Steve Webb

    Member

  • Members

  • 22 posts
  • LocationCANADA
  • Framework Version:Current
  • Country: Country Flag

Posted 06 February 2013 - 10:24 AM

Yeah it was the ampersands.  It works! Thats great thanks a lot Rob

So no special characters at all in the accordion names? that's too bad.

And I didn't see any copied numbers, did you?

 

Thanks again.



#7 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 06 February 2013 - 09:27 PM

Only in my test.  Glad it worked.



#8 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 12 February 2013 - 02:18 AM

Hi realwealth,

 

Please open a new topic for your issue.  Tagging onto someone else's topic is considered hijacking and isn't good netiquette.  We will be happy to review your issue and deal with its individual needs.  Please feel free to reference this topic if you'd like.







Also tagged with one or more of these keywords: pagelines, accordions