I’ve spent the entire day trying to figure out how to fix this and I give up. Any help will be much appreciated. Here is the link to the site with the problem: dev.propadis.com
I’m building a WordPress site with page builder elementor. I’ve created the header with plugin elementor header footer builder. On the header is attached a button with a popup box. When I click the popup box the entire page at the back moves to the right, then moves back on closing the popup box.
Any idea why?
2
Answers
When the pop up box opening the style: “padding-right:0” is adding to your body from a js file.
Additionally a class named modal-open is adding to your body classes.
I think you should add the following jQuery code in your theme:
(you can add it inside a ) in the head of your theme)
For WordPress, this solution worked for me, so far. I’m using PopBox and Elementor/Elementor-Pro.
Note: Do testing in regular browser tabs. Some developer responsive views may not have normal scrollbars.
In the theme’s style.css, add:
In the theme’s scripts, add: