Jump to content

How to create a Lightbox with text and image (team bios page)

Go to solution Solved by Ziggy,

Recommended Posts

Posted

Hi there,

I am hoping to create a Lightbox in an our team page. I would like the Lightbox to open up with the picture as well as their name, job title and bio text. I've used the people section as a template and one of the options is to add a 'read bio' button. I'm just unclear where the bio goes and how it could be transformed into a Lightbox overlay. 

This website has the effect I'm trying to achieve:
https://browningenvironmental.com/people-3/

Any thoughts would be much appreciated! I'm not very savvy with code.

Screenshot 2023-07-11 at 15.42.41.png

Screenshot 2023-07-11 at 15.51.08.png

  • Solution
Posted

Honestly for functionality like that you would need a plugin like this:

https://www.sqspthemes.com/plugins/ultimate-squarespace-lightbox-plugin

For this to work, you need to create a page that contains the bio and use the plugin to create the lightbox link.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • 7 months later...
Posted

Ollie26, please let me know if you found a good solution on how to do this without a plugin. I found this answer, but not for the people gallary: 

 

 

Posted
15 hours ago, kspace said:

Ollie26, please let me know if you found a good solution on how to do this without a plugin. I found this answer, but not for the people gallary: 

 

 

We can achieve that with Custom JS/CSS code. But if create multiple lightboxes, it will more complex.

I don't have the code available here, but I have worked on a few cases for some members on forum (I don't remember the code, need to check it from scratch).

Assuming you only have one image, clicking on the image will bring up the lightbox

  • We can create a section in Footer (will use CSS to hide it, so users can't see it)
  • Then use some CSS to make this section fixed on middle of screen 
  • Then use CSS to hide it
  • Then use some JS code, to make it appears when users click Image/or Text
  • Use JS code to make it close when clicking Close/X icon

If you need to create multiple lightboxes, you will need to create multiple sections in the Footer.
But if the Lightbox simply contains 1 Text Block, then we can just use 1 Section, and insert all the Text Blocks in this Section.

You can describe your case + site url, I can help easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.