Default Close Button of LightBox Jun 18, 2020 By Nabeel Ibrahim Dear All, Am facing a challenge on the default close button of Light box. My requirement is not to show the default close button of light box. I was using java script that I got somewhere from community to hide it. Below is the one, var x = document.getElementsByClassName("lightbox-close-btn")[0];x.style.display = "none"; Now this is not working. Is there any solution to hide the default close button of light box ?
Sam Hill Hero almost 4 years ago06/18/20 at 12:41 pm (UTC) You could try the following. Not sure if it depends on the player though (modern vs classic). That might be something to look out for. The following is for the modern player. document.getElementById('light-box-close').style.display = "none";
2 Replies
You could try the following. Not sure if it depends on the player though (modern vs classic). That might be something to look out for. The following is for the modern player.
Thanks Sam. It worked.
This discussion is closed. You can start a new discussion or contact Articulate Support.