Jump to content

Customizing the lightbox "X" for IMAGE lightboxes

Recommended Posts

Posted

Greetings Community, 

This is my first forum post.

Nearly ready to launch a client website (Squarespace v 7.1), with one small but critical caveat. We really need the “X” that closes IMAGE lightboxes to be black, bold, a little larger, and ideally accompanied by the word “CLOSE” next to the X. (note this is for IMAGE lightboxes, not galleries etc)

The default X is so greyed out and tiny that several betatester friends have gotten “stuck” in a single image lightbox without realizing the X was even there! Only adjustment on front end is to make the lightbox white or black. Given my client’s site a photography site, this is really high-priority for us to adjust, and the last bit before launch.

Anyone know a global tweak that can make this adjustment to all IMAGE lightboxes? Would greatly appreciate any help! Of note is I’m a front end-designer who does NOT do any custom CSS, so being very explicit where to insert any code etc would be so helpful too. Thanks so much! Appreciate it!
 

lightbox-x-issue.jpg

  • 1 year later...
  • 9 months later...
  • 2 months later...
Posted
5 hours ago, AT76 said:

Hi! Also looking to make the X darker and slightly larger on all portfolio pages images, please see example:

https://altatseng.com/play/inside-out-project-portrait-photography

Hi, try adding the below to Custom CSS?

// style lightbox close button
.yui3-lightbox2 .sqs-lightbox-close {
	color: red !important; // the colour you want
	scale: 2 !important; // make it bigger
	translate: 10px 10px !important; // move it away from the edges after scaling
}

 

Let me know how it goes.

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Web Designer & Developer | All things Squarespace
When I have time, I like to help on the Forum, but if you need my full attention, please send your request here.

Tools I use: (affiliate links)
📅Blog Date Format plugin (Free by BeyondSpace)
Lazy Load Summary Block plugin (by Squareswebsites
)
📜Privacy Policy & Cookie Consent plugin (10% off by Termageddon
)
📈SEO plugin for Squarespace (by SEOSpace
)

 Did I help? I like coffee (Thank you)

Posted
22 minutes ago, melody495 said:

Hi, try adding the below to Custom CSS?

// style lightbox close button
.yui3-lightbox2 .sqs-lightbox-close {
	color: red !important; // the colour you want
	scale: 2 !important; // make it bigger
	translate: 10px 10px !important; // move it away from the edges after scaling
}

 

Let me know how it goes.

That worked great, thank you!!

Posted
1 hour ago, AT76 said:

That worked great, thank you!!

You're welcome! 

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Web Designer & Developer | All things Squarespace
When I have time, I like to help on the Forum, but if you need my full attention, please send your request here.

Tools I use: (affiliate links)
📅Blog Date Format plugin (Free by BeyondSpace)
Lazy Load Summary Block plugin (by Squareswebsites
)
📜Privacy Policy & Cookie Consent plugin (10% off by Termageddon
)
📈SEO plugin for Squarespace (by SEOSpace
)

 Did I help? I like coffee (Thank you)

Posted

In case someone needs to accompany it with Close text

.yui3-lightbox2 .sqs-lightbox-close:after {
    content: "Close";
}
.yui3-lightbox2 .sqs-lightbox-close {
    color: #000 !important;
    right: 50px;
    translate: 0px 4px !important;
}

image.thumb.png.5a9f72233c912c84ee460442a5580749.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.