Jump to content

How To Make Close "X" On A Image Block Page The Same As A Close "X" On A Gallery Page With CSS

Go to solution Solved by Lesum,

Recommended Posts

I am trying to make all my close "X" buttons look the same throughout my website, i noticed the "X" for gallery  lightbox and an image block lightbox are not the same.

gallery page :https://www.erinncapko.com/

(Here is the CSS I used for this page)

/* Lighbox close arrows icon */
.gallery-lightbox-close-btn-icon svg * {
    stroke-width: 4px;
}
.gallery-lightbox-control-btn-icon * {
    stroke-width: 1.5px;
}

 


image block page:https://www.erinncapko.com/heartbreaks-revenge-collection

 

Thank you!

Link to comment
  • Solution

@ec25 Here's a code snippet to try. Add the code under Website > Utilities > Website Tools > Custom CSS

.sqs-lightbox-close:before {
	content: "" !important;
	background-image: url("https://images.squarespace-cdn.com/content/64bad3fff4ceb02764165fbd/ffbac58e-deb1-4ede-a73a-502d7f617311/close+icon.png") !important;
	background-size: 100% 100%;
	display: inline-block;
	background-repeat: no-repeat;
	width: 20px !important; 
	height: 20px !important;
}

Let me know how it goes. Thanks! 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment
1 hour ago, Lesum said:

@ec25 Here's a code snippet to try. Add the code under Website > Utilities > Website Tools > Custom CSS

.sqs-lightbox-close:before {
	content: "" !important;
	background-image: url("https://images.squarespace-cdn.com/content/64bad3fff4ceb02764165fbd/ffbac58e-deb1-4ede-a73a-502d7f617311/close+icon.png") !important;
	background-size: 100% 100%;
	display: inline-block;
	background-repeat: no-repeat;
	width: 20px !important; 
	height: 20px !important;
}

Let me know how it goes. Thanks! 

Worked perfectly, thank you so much! 

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.