Archived

This topic is now archived and is closed to further replies.

  • 0

Multiple Accordions On One Page


Question

Posted · Report post

Hi,

I am trying to implement multiple accordions on one page and can not get them to work.

I have made sure each accordion has a unique name

name="accordion1"

name="accordion2"

etc etc

I have, within each accordion, numbered them

number="1"

number="2"

etc etc

Yet it seems to only load the first set of accordions and then repeats it instead of the others (2,3,4)

What am I missing?

http://paste.pagelines.com/5c3

Thanks

Share this post


Link to post
Share on other sites

7 answers to this question

Posted · Report post

Wordpress is formatting your spaces into paragraph tags. Use the pl_raw shortcode, but wrap your entire pages content with it.

 

[pl_raw]

all your stuff

[/pl_raw]

Share this post


Link to post
Share on other sites

Posted · Report post

THANK YOU beardedavenger !!!

 

That worked :-)

Share this post


Link to post
Share on other sites

Posted · Report post

Hope you didn't see my original post...it was wrong.

In your code the first two accordions you increase the number but then in the next accordions you went back to number 1. You need to keep increasing the number so that each number is unique no matter what accordion it is in.

Share this post


Link to post
Share on other sites

Posted · Report post

Also, you need to take out the [pl_raw] codes for the accordions not to repeat.

Here is the code that worked for me.

http://paste.pagelines.com/8vd

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks Ellen :) Karoleen let us know if that's worked for you

1 person likes this

Share this post


Link to post
Share on other sites