Is it possible to change the POI icons ?

  1. Home
  2. Docs
  3. Mondree
  4. Frequently Asked Question...
  5. Is it possible to change the POI icons ?

Is it possible to change the POI icons ?

1) Please don’t forget to take a back up of the file prior to any changes.

2) Open wp-content/themes/mondree-child/functions.php

3) Add the below code inside PHP tag (<?php)

function khore_child_shortcode_frontend_scripts() {
?>
<script type=”text/javascript”>
var poi_marker = ‘<?php echo get_stylesheet_directory_uri(); ?>/assets/img/pl.png’;
var poi_gmap_zoom = <?php echo (!empty($zoom)) ? $zoom : 13; ?>;
</script>
<?php
}

add_action(‘wp_head’,’khore_child_remove_action’,1);

function khore_child_remove_action() {
remove_action(‘wp_head’, ‘khore_shortcode_frontend_scripts’);
add_action(‘wp_head’, ‘khore_child_shortcode_frontend_scripts’);
}

5) Upload the new icon ‘pl.png’ to wp-content/themes/mondree-child/assets/img folder.

These changes will display the new icon.

Was this article helpful to you? Yes No