Is anybody else having issues with the HubSpot Accordion Toggle module?
SOLVE
My buddy and I are building a landing page for a client and one of the modules is the free HubSpot Accordion Toggle. My buddy modified the accordion and it worked perfectly in the preview template. However, when I implemented the accordion into a template for my landing page, published said template, and tried to see if it worked in the draft of the landing page. Needlesstosay, I tried clicking on the accordion toggles and nothing dropped down.
A couple of questions have come to mind as we have been working to diagnose this problem:
1. Is this an issue to do with the code itself?
2. Is it an issue having to do with both the code and landing page?
3. Is there an issue with the design template and landing page?
Jun 26, 20189:52 AM - edited Jun 26, 20189:52 AM
Recognized Expert | Elite Partner
Is anybody else having issues with the HubSpot Accordion Toggle module?
SOLVE
Thanks for the preview @FinnJ. The HTML you have included in the page for the accordion, does not match the JS script that's controlling the accordion. Are you sure you're using the right accordion custom module? The html structure should look like this (tested and working with your current JS):
Jun 26, 20189:52 AM - edited Jun 26, 20189:52 AM
Recognized Expert | Elite Partner
Is anybody else having issues with the HubSpot Accordion Toggle module?
SOLVE
Thanks for the preview @FinnJ. The HTML you have included in the page for the accordion, does not match the JS script that's controlling the accordion. Are you sure you're using the right accordion custom module? The html structure should look like this (tested and working with your current JS):
Is anybody else having issues with the HubSpot Accordion Toggle module?
SOLVE
Thanks, @tjoyce. So would you say the JS error is in the landing page itself as opposed to the accordion module? I'll forward your comment to my buddy to compare the coding scripts.
I wouldn't say it's a JS error at this point. The html just isn't formatted the correct way. It's hard to tell if it's on the template level or module level without investigating the code of the custom module. You could test that it works by dropping the html I gave you into an HTML module in the Design Manager builder. That might help you continue to debug.