I have the same issue. Anyone have a solution About this ?
Add this code:
body.no-scroll {
position: relative!important;
}
@allurewebsolutions I am having the same problem and the css solution is not working for me. I am using the most current version of the Avada theme
I’m not sure why it’s not working. Seems to be some sort of interaction with your theme.
If you take a look at the demo site, scrolling is working fine: https://wp-post-modal.allureprojects.com/?modal-link=https%3A%2F%2Fwp-post-modal.allureprojects.com%2Fmodal-content
Try to compare the CSS and see if there is some property from your theme or another plugin interacting badly with the popup.
I just released version 3.0.1 hopefully, this fixes it
Version 3.1 works now. One other problem I just ran into is after closing the pop-up the user is at the top of the page. It looks like the demo site does not behave this way. Do you have an idea on how to fix this? Thank you for your help!
Hello folks,
Is there any way to activate scrolling with keyboard up-down keys? That would be very usefull and user friendly!
-
This reply was modified 7 years, 7 months ago by
Westeros.
@jpshayes there must be some conflict with code on your site, perhaps from your theme or some other plugin. you would need to debug exactly what’s interfering. the relevant code for what made the body not scroll is located here: https://github.com/allurewebsolutions/wordpress-post-modal/blob/master/public/js/wp-post-modal-public.js#L113
@westeros you can write a custom solution in JS by detecting when the up and down key is pressed and scrolling the modal-wrapper appropriately: https://stackoverflow.com/a/5597114/3602355