JS Lightboxes and need someone to check me
-
Hi all,
I am hoping that I am posting this in the right place. Also, I’m an accidental web developer and am a fair bit outside of areas that I have a strong background in and where I do most of my work. I just say that upfront so people will understand when they ask me to, “Check if the computer is plugged in,” and I respond with the equivalent of, “What do you mean by plugged in and where do I look on the computer for this power cable that you speak of?”
The issue:
I have been told that the linked page used to have lightbox functionality where a window would pop out when the featured image was clicked and when one of the little image thumbnails was clicked, it would change the featured image to that thumbnail image. This functionality is no longer working. I have not been able to find ANYTHING in the code that could have provided this functionality ever and so am turning to the community for help.
The below code are the functions that I have surfaced that control the behavior when the featured image as well as the thumbnails are clicked. The function for the toggle map is included as well as it is right with the rest of the code.
JS
$(".featured-image a").click(function(e) { $(".gallery-item:first-child").click(); return false; }); $("#toggle-map").click(function(e) { $(".featured-image").slideToggle(0); $(".acf-map, .acf-wrapper").toggleClass('show'); return false; }); $(".gallery-item").click(function(e) { $(".featured-image").show(); $(".acf-map, .acf-wrapper").removeClass('show'); });
I can provide CSS and HTML if desired, but wanted to keep this first post as short as I could.
The question I have to start is if we have anything in our environment that would make lightbox functionality happen. If so, I need to figure out how to get it working again. If not, then I would likely try to make that happen with a plugin, but I don’t want to do that if we already have code sitting that needs fixing if that makes sense. For if it is helpful at all, this was discovered around the same time our Google Maps started glitching because we did not have an API key. Fixing that issue did not resolve this.
TLDR: I see nothing that would make lightbox functionality work in our environment, but multiple users distinctly remember us having lightbox functionality and I am feeling a bit crazy because I can’t find anything to indicate that we ever had that functionality in the first place.
The page I need help with: [log in to see the link]
- The topic ‘JS Lightboxes and need someone to check me’ is closed to new replies.