Jump to content

Customizing the lightbox "X" for IMAGE lightboxes

Recommended Posts

My site is foxxmayaarchive.com

 

I would like to customize the lightbox X. I'd like to add "close" and make it a bit bigger and further from the corner. I found this forum with some code suggestions, but they aren't working. I think it's not directing to the right spot in the CSS...but maybe it's helpful. 

 

 

Thanks!

Link to comment
  • Replies 3
  • Views 246
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 2 weeks later...

Something like this?

 

.gallery-lightbox-close-btn {
    position : relative;
}

.gallery-lightbox-close-btn:after {
    content : "Close";
    font-size: 18px;
    position : absolute;
    left : 50%;
    right : 50%;
    width: 80px;
    transform: translate(-50%, 0px);
}

 

Screenshot 2024-09-13 at 10.55.53.png

Screenshot 2024-09-13 at 10.56.22.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.