I have built an accordion on my page here however it is not collapsing. Is anyone able to suggest why? I will paste below the code used in the page template and also the page. Plus I have added three icons to assets.
I just checked your FAQ page, it was because the jQuery library was not imported, you have to insert jQuery script tag on the template file at the top :
Alternatively, if you want a simple accordion that works without jQuery, I have made an accordion HTML generator tool here : https://accordion.yagisoftware.com , hope this can help!
You can customize the accordion button and content styling with this css :
.yagi-accordion button {
/* the button that expand/collapse */
}
.yagi-accordion .accordion-content p {
/* the expanded/collapsed text content */
}
Your accordion maker worked incredible so thank you for that! I just have one insanely long answer and it was originally hiding the text below the dropdown’s section height so I changed the code to display it and now when you expand that question the text goes all the way down into the footer.
Is there any way I can either manually change the height of that section or make it grow as there’s longer answers?
Thanks so much for that! I’ve increased it a few time and even just up’d it
to 1500rem, but it doesn’t seem to be getting any larger:
[image: image.png]
Hi @soulchild37 . Thanks for sharing that code! I’ve copied and pasted it exactly as is with no other coding, but the accordions don’t expand. Is there some special add-on that I need to make the HTML code work?
Thanks so much for the offer, but I found a free app that will get me sorted for the immediate term. I’m just trying to figure out how shopify works and get something set up. As I move along, I’ll start looking more into design features, etc. and consider new options.