Skip to content

Instantly share code, notes, and snippets.

@mgibbs189
Forked from DavidCramer/functions.php
Created June 28, 2017 18:21
Show Gist options
  • Save mgibbs189/b19bb08b9e589ffeaeae7b9284eb8e6c to your computer and use it in GitHub Desktop.
Save mgibbs189/b19bb08b9e589ffeaeae7b9284eb8e6c to your computer and use it in GitHub Desktop.
Disable mouse scroll on Map
<?php
// add this to your child themes functions.php file
add_filter( 'facetwp_map_init_args', function ( $args ) {
$args['scrollwheel'] = false;
return $args;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment