How can I use both Accordion and Lightbox on the same page? | XM Community
Skip to main content

Hi,

I have been using Accordion for quite some time and it’s such a handy tool to display concepts to respondents without using up a lot of the screen space. I recently played around with Lightbox and I was planning to use it on one of my surveys but it seems to have a conflict with Accordion. Both work separately but when I use them on the same theme, the accordion feature is broken and only the Lightbox feature works.

 

This is what I have in the header of the theme:

<link href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" /><script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.10.0/js/lightbox-plus-jquery.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.10.0/css/lightbox.min.css" rel="stylesheet" />

 

Be the first to reply!

Leave a Reply