How to prevent body from scrolling when modal window open (help again!)

I see the custom code from previous posts but can’t get it to work! I want “View Company Details” button to open the modal and stop the body from scrolling. This is what I have:

Webflow.push(function() {
('.lightbox-open').click(function(e) { e.preventDefault(); (‘body’).css(‘overflow’, ‘hidden’);

('.lightbox-close').click(function(e) { e.preventDefault(); (‘body’).css(‘overflow’, ‘auto’);

Here is my preview LINK. It’s on the “Bellingham Festival of Music” page in that project.

Thank you for any help!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.