Forum Discussion

DavidHolzemer's avatar
DavidHolzemer
Community Member
5 years ago

Storyline 360 Lightbox Close Button

Is there a way to turn off the native close (X) icon for lightbox slides in Storyline 360?

I'd like to remove it and replace it with my own.

Thanks!

  • Hi David,

    Try adding an execute javascript trigger for timeline start on your lightbox slide.

    document.getElementById("light-box-close").style.display = "none";

    • MelissaMaher's avatar
      MelissaMaher
      Community Member

      Thank you for this suggestion! It definitely worked, however I noticed a very odd repercussion. As with traditional lightbox functionality (using modern player), the lightbox slides appear as a slightly smaller overlay, with transparent gray background, however as soon as my new custom close button is clicked, the slide size for remaining slides shrinks to the reduced lightbox dimension forever more. It's odd. Does anyone know why that's happening and/or how to remedy? I uploaded screenshots. "Lightbox-1.jpg" shows traditional lightbox appearance (original lightbox close button), where base slide is clearly larger than reduced lightbox slide overlay. "Lightbox-2-AfterCloseBtnClkd.jpg" shows how the project dimension shrinks to the reduced lightbox slide size as soon as the close button is clicked. If you put these 2 screenshots together in photoshop, you can see how the dimension of base layer (and consequently all subsequent slides) has been reduced after closing lightbox slide. If anyone has any advice as to why this is happening and how to fix, I would greatly appreciate your help!

      I just noticed something else. Once I click the new custom close button on the lightbox slide, the player controls are all completely disabled for the rest of the course. Can't get into menu, transcript, scrubber, volume, etc. All are disabled.

    • NicholasBeech's avatar
      NicholasBeech
      Community Member

      Hi Russell, 

      Just found your suggestion from quite a while ago now, but wanted to say it's just saved me quite a headache and worked perfectly.

      Thanks!

  • LinWong's avatar
    LinWong
    Community Member

    Hi may i know if javascript will be visible when published as SCORM on the LMS? thanks!

  • The javascript is executed by the browser, and is never seen by the learner.