Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
ale

Disabling Lightbox in Summary Box but keeping links when present

Question

—Brine template

I would like to know if it is possible to disable the Lightbox in a summary box (from a gallery) and, if possible, how to do it.
I would like that for images that have no link indicated, there was no cursor mousehover nor Lightbox, while for images that have the link, there was the mouseover and the link working.

Thanks for the help
 

Edited by ale

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 0

 

As a test I created a gallery called test gallery. 

Then I gave some of the items in the gallery links 

image.png.dfb0bbe02e188c21069d3744ec7fc78a.png

 

I created a summary block on another page that uses the gallery as the source of its images. 

Then I created a css rule to kill pointer events for any summary items whose link is from the original gallery (begins with /test-gallery).

It works as expected. Items with no clickthrough url have a standard cursor and are not clickable but those with a clickthrough work properly. 

Here is the code - insert it at the bottom of your custom css area after any other code that may already be there. You'll need to tweak href ^= "***" to reflect your gallery slug 

.summary-item a[href^="/test-gallery"] {
    pointer-events: none;
}

Please hit LIKE to share your appreciation of posts that are helpful or useful. 

The like button is somewhere over thereover-there.jpg

Of course, Likes don't pay the bills.. If you're looking for a Squarespace Developer you can hire me here

Share this post


Link to post
  • 0

If it's the team member gallery you want to customise the code would be 

.summary-item a[href^="/en/teamphoto"] {
    pointer-events: none;
}

 


Please hit LIKE to share your appreciation of posts that are helpful or useful. 

The like button is somewhere over thereover-there.jpg

Of course, Likes don't pay the bills.. If you're looking for a Squarespace Developer you can hire me here

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...