{"id":54851,"date":"2015-09-22T06:03:36","date_gmt":"2015-09-22T10:03:36","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=54851"},"modified":"2017-07-28T05:46:24","modified_gmt":"2017-07-28T09:46:24","slug":"wordpress-how-to-enabledisable-mousewheel-scrolling-zoom-on-google-map","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-enabledisable-mousewheel-scrolling-zoom-on-google-map.html","title":{"rendered":"WordPress. How to enable\/disable mousewheel scrolling zoom on Google Map"},"content":{"rendered":"<p>\r\n<p>Hello! This video tutorial shows how to <strong>enable\/disable<\/strong> <strong>mousewheel scrolling zoom<\/strong> in Google Map of WordPress templates.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=IbqUVucv9KE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to enable\/disable mousewheel scrolling zoom on Google Map<\/a><\/p>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<p>You may have a <strong>Google Map<\/strong> at the bottom of the Home page of your WordPress template:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_1-300x158.png\" alt=\"wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_1\" width=\"300\" height=\"158\" class=\"aligncenter size-medium wp-image-54852\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_1-300x158.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_1-150x79.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_1-1024x538.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_1.png 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Hover over the map and try scrolling with your mouse wheel &#8211; you can see the map <strong>zooms in\/out<\/strong> while scrolling.<\/p>\r\n<p>You may want to disable this function since it is quite annoying at times, when you want to simply scroll the page up and have the map zooming out instead.<\/p>\r\n<p>Otherwise, you may want to have <strong>zoom<\/strong> enabled so your site visitors could easily navigate to the desired location on the map by using <strong>mousewheel scrolling zoom<\/strong>.<\/p>\r\n<p>Let&#8217;s learn how to manage this function.<\/p>\r\n<p>The tutorial assumes you are already logged into your WordPress dashboard.<\/p>\r\n<ol>\r\n<li>\r\n<p>Navigate to <strong>Appearance -> Editor<\/strong> tab in the dashboard:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_2-300x165.png\" alt=\"wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_2\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-54853\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_2-300x165.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_2-150x83.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_2-1024x563.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_2.png 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Click the <strong>static-map.php<\/strong> title on the right hand side to open the file for editing:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_3-300x165.png\" alt=\"wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_3\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-54854\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_3-300x165.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_3-150x83.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_3-1024x563.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_3.png 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Now that the file editing interface is opened, use the <strong>CTRL+F\/CMND+F<\/strong> key <strong>(Windows OS\/Mac OS)<\/strong> to find the following piece of code:<\/p>\r\n<\/li>\r\n<\/ol>\r\n<pre class=\"brush:js\">var mapOptions<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_4-300x160.png\" alt=\"wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_4\" width=\"300\" height=\"160\" class=\"aligncenter size-medium wp-image-54855\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_4-300x160.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_4-150x80.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_4-1024x547.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_4.png 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>You can see the following block of code below:<\/p>\r\n<pre class=\"brush:js\">\r\n\/\/ How zoomed in you want the map to start at (always required)\r\nzoom: &lt;?php echo of_get_option('zoom'); ?&gt;,\r\nscrollwheel: true,\r\n<\/pre>\r\n<p>As you can see the <strong>scrollwheel<\/strong> function is set to <strong>&#8220;true&#8221;<\/strong> by default.<\/p>\r\n<p>Simply replace it with <strong>&#8220;false&#8221;<\/strong> to disable the mousewheel scrolling so the code looks as follows:<\/p>\r\n<pre class=\"brush:js\">\r\n\/\/ How zoomed in you want the map to start at (always required)\r\nzoom: &lt;?php echo of_get_option('zoom'); ?&gt;,\r\nscrollwheel: false,\r\n<\/pre>\r\n<p>Click the <strong>&#8220;Update File&#8221;<\/strong> button at the lower part of the screen to apply changes:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_5-300x160.png\" alt=\"wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_5\" width=\"300\" height=\"160\" class=\"aligncenter size-medium wp-image-54856\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_5-300x160.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_5-150x80.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_5-1024x546.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/wordpress_cherry_3x_how_to_enable_disable_mousewheel_scrolling_zoom_in_google_map_5.png 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Navigate to your site front-end and refresh the page to see changes.<\/p>\r\n<p>You can see the <strong>map mousewheel scrolling zoom<\/strong> is disabled now.<\/p>\r\n<p>This is the end of the tutorial. You have learnt how to <strong>enable\/disable mousewheel scrolling zoom<\/strong> in Google Map of your WordPress template.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=IbqUVucv9KE?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to enable\/disable mousewheel scrolling zoom on Google Map<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This video tutorial shows how to <strong>enable\/disable<\/strong> <strong>mousewheel scrolling zoom<\/strong> in Google Map of WordPress templates.<\/p>\n","protected":false},"author":68,"featured_media":54859,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[800,2061,2405,1536],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/54851"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=54851"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/54851\/revisions"}],"predecessor-version":[{"id":82298,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/54851\/revisions\/82298"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/54859"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=54851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=54851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=54851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}