How to drag/move the map on iPhone?

  1. Home
  2. Docs
  3. Khore
  4. Frequently Asked Question...
  5. How to drag/move the map on iPhone?

How to drag/move the map on iPhone?

1) Copy jquery.main.js from khore/js folder and paste in to the child theme. (khore-child/js)

2) Open child theme functions.php and add the following:

<?php

add_action(‘init’, ‘removeScripts’);

function removeScripts(){

wp_deregister_script(‘khore-script-main’);
}
add_action( ‘wp_enqueue_scripts’, ‘script_enqueuer’ );

function script_enqueuer() {
wp_register_script( ‘khore-script-main’, get_stylesheet_directory_uri().’/js/jquery.main.js’,array(‘jquery’), false, false);

}

?>

3) Open jquery.main.js from child theme and search for the following:

if (device.mobile()) {
mapOptions.draggable = false;
}

4) Please change this code as below:

/*
if (device.mobile()) {
mapOptions.draggable = false;
}
*/
5) Save the file.

Was this article helpful to you? Yes No