Hoping someone can help with this … When my lightbox window pops up, it’s hard to scroll just the lightbox content without also scrolling the content behind the popup (especially on mobile). Is there any code I can inject to freeze the body content but still allow the content in the lightbox to scroll? Thanks!
Save changes and republish. On published view, the body will change to overflow hidden when the modal is open, and then change to auto (visible scroll works) when the modal is closed.
Thank you again for your help with this. This kind of customer service is what puts Webflow above and beyond everyone else. Such a breath of fresh air.
So I implemented it and it seems to work right on desktop, but not on mobile? Is there any reason code-wise this would be happening?
Also, I had added the ID “open-modal” to the “contact” button in the navigation of every page as well as the “yes please!” button at the bottom of every page but after it gave me the error message that the ID had already been used on the page, I deleted it (and even now tried giving it a completely new ID called “test”) and now it’s still opening up the modal (which it shouldn’t be since it has a different ID than is called in your javascript). Why is that? Seems buggy, but maybe it’s something I’ve done wrong?