google map

Closed
CityTours - Hotel & Tour Booking WordPress Theme CityTours - Hotel & Tour Booking WordPress Theme March 15, 2019
Login to reply
Kelly R Support Agent
5 years ago
Resolved.
NEO KONG
5 years ago

Thanks Kelly.

Kelly R Support Agent
5 years ago

Hi,

Please remove following codes in /template-functions.php file.

if ( ! empty( $ct_options['map_api_key'] ) ) { 

   wp_register_script( 'ct_script_google_map', '//maps.googleapis.com/maps/api/js?key=' . $ct_options['map_api_key'], array(), '', true );
  } else {
   wp_register_script( 'ct_script_google_map', '//maps.googleapis.com/maps/api/js', array(), '', true );
  }

and 

wp_enqueue_script( 'ct_script_google_map' );

  wp_enqueue_script( 'ct_script_map' );

Regards, C-Themes


NEO KONG
5 years ago

Hi,

I am not using google map at all. But, this file -    
https://maps.googleapis.com/maps/api/js - occupies 33.4kb. Can you help to take it out or disable it so as to make my website faster?

Thanks

Neo