Jump to content

Featherlight Lightbox Troubleshooting

Recommended Posts

Posted

Site URL: https://pumpkin-pentagon-fmgr.squarespace.com/blk-101-nova-scotia

Hi guys, I've implemented a featherlight lightbox biography for my website. However, sections or elements below the lightbox area become interactive and those sections open a lightbox when there should be none opening up. Is there a problem with the coding? I've been having difficulty configuring how the lightbox coding. 

My current code looks like this:

Code Injection (Header and Footer):

<link href="//cdn.rawgit.com/noelboss/featherlight/1.7.13/release/featherlight.min.css" type="text/css" rel="stylesheet" />

<script src="//code.jquery.com/jquery-latest.js"></script>
<script src="//cdn.rawgit.com/noelboss/featherlight/1.7.13/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>

Code Block:

<a href="#" data-featherlight="#bio-Lindell">

<img src=imagelink</a>

<div style="display:none;">
<div id="bio-Lindell" style="text-align:center;">
<img src="Image link" width="300" height="300"/>
  <h3 style="text-align:left">Name</h3>
  <p style="text-align:left">Text</p>
</div>
</div>

Looking forward to see how to remedy this issue. My password for my site is 7412!

  • Replies 10
  • Views 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 months later...
Posted

Site URL: https://sampsonlab.squarespace.com/meet-the-team

I am using a light box for my website's bios. However, the show up in the incorrect location after saving. They work correctly, but are not in the right place on the page. It works in some areas, but not in others, which I why I'm confused. Any advice or help is much appreciated!!

 

Here is the code I used:

Header

<link href="//cdn.rawgit.com/noelboss/featherlight/1.7.13/release/featherlight.min.css" type="text/css" rel="stylesheet" />

Footer

<script src="//code.jquery.com/jquery-latest.js"></script>
<script src="//cdn.rawgit.com/noelboss/featherlight/1.7.13/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>

Page

<div style="text-align:center; padding:0;">
<a href="#/" data-featherlight="#bio-name" class="sqs-block-button-element--medium sqs-block-button-element" style="background-color:#000; color:#fff; padding:20px 20px;">View Name's Bio</a>
</div>

<div style="display:none;">
<div id="bio-name" style="text-align:left;">
<img src="link for image" alt="Name" width="300" 
     height="376" style="float:left; padding:15px;" /> <br></br>
<h4>Name</h4>
<p>Title<br></br>
  
Bio <br></br>

<a href="link"target="_blank">Link Name</a> <br></br>
</p>
</div>
</div>

 

Posted
On 7/29/2022 at 2:06 AM, wave8756 said:

Site URL: https://sampsonlab.squarespace.com/meet-the-team

I am using a light box for my website's bios. However, the show up in the incorrect location after saving. They work correctly, but are not in the right place on the page. It works in some areas, but not in others, which I why I'm confused. Any advice or help is much appreciated!!

 

Here is the code I used:

Header

<link href="//cdn.rawgit.com/noelboss/featherlight/1.7.13/release/featherlight.min.css" type="text/css" rel="stylesheet" />

Footer

<script src="//code.jquery.com/jquery-latest.js"></script>
<script src="//cdn.rawgit.com/noelboss/featherlight/1.7.13/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script>

Page

<div style="text-align:center; padding:0;">
<a href="#/" data-featherlight="#bio-name" class="sqs-block-button-element--medium sqs-block-button-element" style="background-color:#000; color:#fff; padding:20px 20px;">View Name's Bio</a>
</div>

<div style="display:none;">
<div id="bio-name" style="text-align:left;">
<img src="link for image" alt="Name" width="300" 
     height="376" style="float:left; padding:15px;" /> <br></br>
<h4>Name</h4>
<p>Title<br></br>
  
Bio <br></br>

<a href="link"target="_blank">Link Name</a> <br></br>
</p>
</div>
</div>

 

Hi. What is password?

image.png.33d5dc61fc5f1284a188aef23b720d0c.png

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!)

  • 5 months later...
Posted
On 2/3/2023 at 8:52 PM, laurenhauss said:

Hello! I am utilizing code I found here and github and unfortunately the text is not displaying in the lightbox. Can anyone help?  Thank you

Site: https://sagesage.squarespace.com/

Password: sage

 

Screenshot 2023-02-03 at 8.50.42 AM.png

Screenshot 2023-02-03 at 8.50.45 AM.png

Lightbox is fine to me. Windows/Chrome

image.thumb.png.b13726d0f2d152d4302b0ad1d689d80f.png

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.