For those of you who have experienced a sort of “wiggle” on an iPhone when viewing your Elementor created pages using the GeneratePress theme, this is the fix.
The issue is not that it creates a horizontal scroll bar, but that you are able to move the page horizontally back and forth a bit.
Add this custom CSS to where you add your custom CSS (Simple CSS is my preferred location) and your Elementor created pages in GeneratePress will be rock solid.
A big thanks to Nicholas in the GP forum for this.
html, body { max-width: 100% !important; overflow-x: hidden !important; }
You save my life. Thanks!
You’re welcome, Juliano 🙂
Cheers!
Lyle
Thanks – worked a treat for me and I’m using the Elementor Hello theme.
Hi Toby,
You’re welcome 🙂
Good to hear that it worked with the Hello theme.
Cheers!
Lyle
Thank you so very much!
You’re very welcome, Ashley 🙂
Cheers!
Lyle
Hi i am using astra and elementor can you help me i am facing page wiggles probem
This works with Astra as well.
Cheers!
Lyle
Thank you Lyle! Works also with OceanWP!
You’re welcome, Stefan.
Good to hear it works with OceanWP as well 🙂
Cheers!
Lyle
I wanna kiss youuu!! Thank you thank you!
Hi Joey,
So glad to hear that it was useful 🙂
Cheers!
Lyle
Many thanks, you’re amazing!
Hi Louis,
You’re welcome 🙂
Cheers!
Lyle
Lyle…just this morning I had this problem on a website. I remembered that you had a fix for this…came here…found it…added your CSS…checked the site…and yeahhhh!!! It works. Thanks so much.
Hi Christian,
You’re welcome and good to hear that it worked 🙂
Cheers!
Lyle
going to give this a go, many thanks
Thanks so much :)))
You’re welcome, AV 🙂
Cheers!
Lyle
Works with Astra Pro and Elementor Pro, thanks SO MUCH.
Hi Maria,
Good to hear and you’re welcome 🙂
Cheers!
Lyle
This isn’t the first time you’ve had a fix for a WP issue I’m having. Pure champion. Thank you.
Hi Roger,
You’re welcome 🙂
Cheers!
Lyle
Also works perfectly to fix the same bug for BeaverBuilder 2.2.3.3 with Beaver Theme 1.7.3 & Beaver Themer 1.2.3.4.
Simple – effective! Thanks!
Hi Jason,
Thanks for the info! That’s great to know.
Cheers!
Lyle
Thanks much… Works for Divi theme as well… 🙂
Hi John,
You’re welcome and thank you for the info about Divi.
Cheers!
Lyle
Works with WPBakery Page Builder!, thanks a lot!
Hi Francesc,
Good to hear that and you’re welcome.
Cheers!
Lyle
Beautiful thank you very much works with Astra theme too
You’re welcome, and good to hear it works with Astra 🙂
Cheers!
Lyle
Wow.
Thanks a lot!!
You’re welcome 🙂
Cheers!
Lyle
That was amazing! Thank you so much!
You’re welcome Maggie 🙂
Cheers!
Lyle
great solution! thanks!
You’re welcome, Barry 🙂
Cheers!
Lyle
I’m trying to use this code (I have the Hello Theme) For some reason it doesn’t work for me. When I copy past it, the first line is indicated with a red X. Can you help? Thanks.
Hi Asaf,
I have no experience with the Hello theme. The red X would indicate that that selector is not valid for that theme. The code provided is for the GeneratePress theme, which does work with it.
Cheers!
Lyle
Hi. I found this solution to the wobble and it has previously worked for me and my GeneratePress-themed site. However, switching to Standard AMP mode for posts causes them to wobble sideways again. Can this be fixed, please?
Hi Paul,
Probably, but I have no experience with AMP mode.
Cheers!
Lyle
Awwww man, this is golden. Thank you so much! It makes my site look so much more official.
One question, when I turn my iPhone into landscape mode, there are white bars on the sides of the screen. Not a huge problem but my site is a darker site, is there any way to get rid of those bars or make them black?
Thanks!!!
You’re welcome, Mark 🙂
For your question I would need a link to the site in question. I could take a quick look if you send me the link via the contact page here as I don’t care for links in the comments.
Cheers!
Lyle
Looks like this post ages very well and is relevant even three years later. 🙂
As already mentioned here in comments, works with Astra/Elementor like a dream.
I’m a long time web designer, but this little trick never crossed my mind.
Truly thankful for this little snippet! Much appreciated! TY!
You’re welcome, Sten 🙂 Good to hear that it was of use.
Cheers!
Lyle
Worked like a charm on Hello Theme from Elementor. It was driving me crazy testing on my iphone as to why it was doing this!!! Thanks!
You’re welcome, Robert 🙂
Good to know it worked on the Hello theme.
Cheers!
Lyle
This worket great, thank you. I still have the problem that all my content is “pushed” a bit to the right, everything except headder and footer which are contorlled in theme custimization. Any idea why that might be
You’re welcome 🙂
Check the other sections to make sure there is nothing overflowing.
Cheers!
Lyle
Works like a charm! bless you
Thanks 🙂
Cheers!
Lyle
I am using Elementor Hello theme. The code works, but it also blocks vertical scrolling. Is there a way to only block the horizontal wiggle with the following slider?
https://www.sentielwatches.com/product/insigne-royal/
Best wishes!
Not sure how to do that. I’ll do some testing and will post back if I find a way.
Cheers!
Lyle
Hi,
were you able to fix this?
With the css code from this page there is a strange behavior: when scrolling down I have to swipe up twice to actually scroll up.
It’s like I have a window/viewport inside a window/viewport and first swipe moves the inner window/viewport and second works as it should be during the first time 🤷♂️
Haven’t notice this behavior on my iPhone 5S.
Cheers!
Lyle
Thank you! Worked great!
You’re welcome 🙂
Cheers!
Lyle
This worked like a charm on my site too, using the Typology theme and Elementor. Maybe this code should be added to the core Elementor CSS
https://github.com/elementor/elementor/issues
Love it! It worked perfectly!
Thank you!!!!
You’re welcome 🙂
Cheers!
Lyle