Hi @marcelle42! That is not the normal behavior for the lightbox. I just checked to be sure by creating a page with long content, and adding some links to images or videos in the content near the bottom. When I click on those, the lightbox opens without any background scroll.
You can see the same (or should be able to) by going to https://firelightwp.com/free-lightbox/ and scrolling down a bit a clicking one of the buttons to open a PDF or map or video. Maybe try that and confirm it doesn’t scroll for you (so we can exclude behavior specific to your browser). For V2 specifically, you can also try that here.
So we’d need to figure out why your page, specifically, is scrolling. I wonder if there’s any other JS operating on the page that is detecting the lightbox click/open, and causing the scroll.
If you can share a link to your page, we can take a look at that too.
Thanks so much @tillery! I can confirm that I don’t have the scrolling behavior on the links that you listed, so it’s not a browser issue. The site I’m working on is jpointcollaborative.com. If you scroll about half-way down the page, there’s a section titled “Collaborators”. The titles and pronouns of the collaborators are linked to trigger the inline lightbox, which produces the scrolling behavior. Let me know if there’s anything else I can provide.
Hi @tillery! Just checking to see if you all will be able to review this. Thanks so much!
@marcelle42 – Sorry for the delay. Our developers had tried a few ways to duplicate this issue last week without success. Right now, we suspect it may be related to BeThemes Scroll-to-top button and functionality. We can’t test because do not have access to the theme, which is paid only.
A quick way to test the above would be to disable the scroll to top button momentarily. Looks like there’s an option to ‘hide’ that here: https://forum.muffingroup.com/betheme/uploads/259/FHBYVF9JFS7K.png
Would you be open to trying to disable that to test and confirm if the issue goes away?
If that is the issue, to fix it, we’d need access to a copy of theme to see how their scroll to top behavior gets triggered and see if there’s a way we can prevent that when the lightbox is opened. In that case, we may as you to contact us at firelightwp.com/contact we’ll coordinate with you separately to get a copy.
I wanted to add that you did a great job creating those popup bios for contributors! Really nice use of the lightbox.
Just wanted to follow up on this — it was not the theme, but rather some additional JavaScript I was using for a scroll effect on in-page anchors. When I disabled it, the lightbox functioned correctly. The client ultimately went in a different direction all together, so the bio pop ups are no longer on the site, but I wanted to update this with the solution in case it’s useful to someone else in the future.