Is there any way to simply disable fullPage.js on mobile view? I’ve tried setting all related Div Blocks to “Hide on Phone Portrait” in the div’s settings, but still no luck.
My guess is that since the js code is added in the head tag, it does not interact with the hidden on phone settings of the Divs. Any JS ninja has an idea how to add a line or two to disable fullPage on mobile then?
Thanks Evan, it works. For others with the same issue, don’t forget to add <script>$(document).ready(function() { $('#fullpage').fullpage(); });</script> after the above code.
Another question @EvanJones, I found that when I build upon this solution and add the following code in head <style type="text/css"> @media screen and (min-width: 1200px) { .w-container { max-width: 1170px; } } body,html{ overflow: hidden !important; } </style> to make the page larger than Webflow’s default on big screens, that it renders the mobile version unscrollable - nothing moves.
Regarding the page being unscrollable on mobile, it will more than likely be because your custom header code is set to “overflow: hidden” - you’ll need to add another media query for smaller screens to overwrite this rule (ie make it scrollable).
Replacing your custom code with the below should do the trick: