[How-to] Create a Collapsible Page Section

design
ui

#15

Hey @Tim_Corlett, I’ve done some testing and it appears to be working on mobile as expected. Could you direct message me with some browser/device specs to help me try to recreate what you’re seeing?


#16

Hey Jess, Any plans to implement a toggle feature in the tool box? Walls of text are conversion killers and toggle feature is a must have. I run across many cases where I would use this, not just FAQs. Examples: Showing a preview of a review with a “read more” link that expands the rest of the review, product information (ingredients, instructions, ext.), or just on general sections of the page that have in depth information.


#17

I agree with Andi1 on this one - a study that shows landing pages convert better without collapsible FAQ sections is completely useless. Just because it didn’t work for someone, doesn’t mean it won’t work for you. If we just used case studies or best practices as a guide on building landing pages, then what’s the point of A/B testing?


#18

Hi @Noah … I am having trouble making this work on mobile. Desktop works fine… except that the grey bg stops when collapse is open.

http://unbouncepages.com/training-template-2647102786853/

button is Testimonials

My mobile version is a completely different bunch of sections. Effectively, I need a another instance of the Javascript … with different IDs for section, box, and button … but this did not work.

What’s the solution?

Thanks,

Oliver


#19

Hi @Noah …thanks for the code; it works great! I was wondering though if there was a way to have the “toggle button” ONLY reveal the collapsed section and then have another button (like a minus sign) available in that section that would then collapse it?
Thanks,
James


#20

Hi James,

you mean like having a Hidden Collapsible Page Section triggered by a Button and inside having a Collapsing Divs? Like here shown ?

I just found something about the collapsing Divs HERE, but will be awesome if the Unbounce Experts could explain a little more how to implement it, because only with the CSS code can be harder than normal.

Please PM me, or contact me, or just answer here if this is actually possible: Collapsible Divs inside a Collapsible Page Section. And how to implement them?

Thanks


#21

Hey Jess!!

Could you please help me little further with the implementation of Collapsible Divs?
Thanx :smiley:


#22

Hey Noah!
Thanx for this feature. Is super useful.
I still need some help with this awesome code, because isn’t working on my LP.

I put the collapsible section exactly below the Footer, but when the section expands, all the elements (text box, images…) in the footer stay in the same position and overlap the information that’s shown.

Is there something I missed? Or someone knows please how to fix that? Thank you :slight_smile:


#23

Thank you a lot, Noah.
Is there any possibility that I can use multiple collapsible pages on one page using your code?
I desperately need 3 collapsible pages!


#24

Sorry @Hani_Chang1 it’s not possible using this code. I’ll let you know if any updates are made down the road.


#25

Hi @Noah, I’m having a similar issue to @ibrudap in that the footer is not correctly re-positioning. When you click to either expand or re-hide the collapsible section, the footer slowly jumps up the page. I’d love any tips into how to fix that. Thanks!


#26

Hi @cbp5032
I actually did with a solution for this. Maybe it could also work for you.
First I had the elements in the Footer inside bigger boxes. And that didn’t allow them to move responsively with the footer.
(For example: A box that had inside 2 Text Boxes and 1 Image)

What I did was putting them outside in individual elements. That fixed the problem in my Landing Page.

Try it as well and let me know :wink: #goodluck


#27

Yet another AWESOME script @Noah!!! :raised_hands:t4: :raised_hands:t4: :raised_hands:t4:


#28

This is a very good script! Unfortunately, there were graphic bugs when using a form. To be more precise, the input fields were not among each other, but superimposed in a common line.
Has anyone had similar experiences? I would be very grateful for a workaround or something similar. Cheers.


#29

Was this every fixed? It seems mobile still doesn’t work for me either - screen shot shown.
Please let me know?


#30

Hi @lindspire,

If the page content is mobile optimized this script should work on mobile. I optimized the demo page and can confirm it’s working as expected: https://landingpage.noahmatsell.ca/collapsible-section/

One thing to double-check is that the containing box in the collapsible section is the full height of the section on mobile.


#31

I’ve been unable to get this to work. Any ideas? @Noah

I changed all the ids (box, block, button) from the git script.
http://unbouncepages.com/virtual-training-bed/

Where should the js be placed (head, after body, before body end tag)? I chose head.

Thanks.


#32

The answer is before body end tag.


#33

Hey, Noah do you know if this is any further along. I also need to use multiple collapsible pages. I was going to use the tab script as a workaround but that doesn’t work on mobile


#34

Hey there! The script works fine and looks really nice.

I wanted to have more than collapsible page section. Can this script only be used once?

What is not clear, is that do I just add more elements to the same JS code or do I paste the code again?

Thanks
Anna