Nested FAQs opening wrongly
-
I have FAQ A which contains a shortcode to display all FAQs from group A, say A1, A2 and A3. FAQ A1 has a shortcode to display all FAQs from group B, say B1, B2, B3. When I click on the plus sign next to A1, I would like it to open FAQ A1 but with B1, B2 and B3 closed up. Instead, it opens A1 AND B1, B2 and B3. It (correctly) changes the sign next to A1 to minus but leaves the signs next to B1, B2 and B3 as plus – despite them now being open.
I think the problem is in frontend/js/scripts.js where:
parent_toggle.addClass(‘active’).find(‘.qe-toggle-content’).slideDown(‘fast’);
Should be:
parent_toggle.addClass(‘active’).children(‘.qe-toggle-content’).slideDown(‘fast’);
To stop it traversing down to the next level FAQs when opening.
- The topic ‘Nested FAQs opening wrongly’ is closed to new replies.