1. Home
  2. WP User Frontend Pro
  3. Tutorials
  4. How to solve GeoDirectory plugin conflict

How to solve GeoDirectory plugin conflict

In this article, we have demonstrated how to solve the conflict with WP User Frontend and GeoDirecory.

If you are using GeoDirectory and WP User Frontend together, one of them might not work. Because, both of the plugins have Google Maps feature and they use the same JavaScript.

So to stop the conflict we will remove google maps feature from WP User Frontend. To do that –

1. You have to open”Wp-content/plugins/Wp-user-fronted/wpuf.php file.

2. In line number 197 you will see this-

wp_enqueue_script( 'google-maps', $scheme . '://maps.google.com/maps/api/js?sensor=true' );

3. You have to just comment out this line to turn off the google map from WPUF. So it will look like

//wp_enqueue_script( 'google-maps', $scheme . '://maps.google.com/maps/api/js?sensor=true' );

By commenting out the line, now the plugin – WP User Frontend will not load the google maps and the features of GeoDirectory will work fine.

Remember: As you edited the plugin file directly, this change will be lost upon update. So after updating, you have to comment this line each time.

Was this article helpful to you? Yes 5 No 2

How can we help?