Default Close Button of LightBox

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 ?

 

2 Replies