Code

Remove Element from Mobile Load

Remove an element from loading on mobile or low resolution devices in Webflow. This Javascript code makes it easier to remove elements from your mobile and smaller screen resolutions.

Remove Element from Mobile Load preview

Remove an element from loading on mobile or low resolution devices in Webflow. This Javascript code makes it easier to remove elements from your mobile and smaller screen resolutions.

How to add it

  1. Add the Javascript code to the closing body section of your pages custom code
  2. Update the .class with your elements class ID

The code

Javascript
                      <!-- Add to closing body section -->
<script>
 $(document).ready(function() {
   if($(window).width() <= 767){
    $( ".class" ).remove();
   }
});
</script>

                    

Browse similar code snippets

Categories

Language

More from Corey Moen

Profile →

Related Webflow questions

All answers →

Similar code snippets

All code snippets →