Yeah it worked for me, I’ve used it for WordPress sites too. However, like I said, make sure the rest of your site works as expected. That bit of code made my pages load from bottom to top. I managed to activate it for only my homepage, which still doesn’t load as I would prefer it to. If you are familiar with using the google inspector you can find the element that is causing the issue (something that stretches beyond the horizontal capacity of the page) and add that overflow-x: hidden, to just that element. You may or may not need the media query depending on how your site is working on mobile.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| The naughty horizontal scroll bar is back ! :-( | 3 | 132 | December 31, 2018 | |
| Horizontal scrollbar when nothing is outside the gridlines, help! | 1 | 231 | August 5, 2018 | |
| Horizontal scrollbar when nothing is outside the gridlines | 3 | 1543 | July 19, 2019 | |
| Horizontal scrollbar when there is no content outside the guidelines | 1 | 516 | August 6, 2018 | |
| Need horizontal scrolling | 0 | 72 | March 26, 2019 |