Vertoh

  1. Home
  2. Docs
  3. Vertoh
  4. Frequently Asked Questions
  5. How to remove the hover text feature on map?

How to remove the hover text feature on map?

Please do the below change:

1) Open wp-content/themes/vertoh-child/functions.php

2) Add the below code after PHP tag <?php

add_action( ‘wp_enqueue_scripts’, ‘vertoh_child_custom_js’, 100);
function vertoh_child_custom_js(){
wp_dequeue_script(‘vertoh-maps’);
wp_enqueue_script(‘vertoh-child-maps’, get_stylesheet_directory_uri() . ‘/js/map.js’, array(‘jquery’, ‘vertoh-gmaps’), false, true);
}

3) Create js folder inside vertoh-child

4) Copy wp-content/themes/vertoh/js/map.js to wp-content/themes/vertoh-child/js

5) Open wp-content/themes/vertoh-child/js/map.js

6) Around line number 28, you can find:

title: pois[i].poi_address,

7) Please remove or change this to:

//title: pois[i].poi_address,

8) Save the file.

This will solve the issue.

Was this article helpful to you? Yes No