Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter adriancedar

    (@adriancedar)

    To clarify my question.

    I want the lightbox method used when I use shortcode to display module content. It seems like shortcode of a module content only allows for embedd with iframe.

    Thread Starter adriancedar

    (@adriancedar)

    I added the following javascript below the cluevo chapter shortcode for the desired effect.

    <script>
    var chapter = 2; // keep module
    var x = document.getElementsByClassName(“cluevo-content”);

    for (var i = 0; i < x.length; i++) {
    if (i != chapter -1) {
    x[i].style.display = “none”;
    }
    }
    </script>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Singular Chapter as a popup’ is closed to new replies.