Back to Community

How to Hide and Remove Elements in WP Go Maps: A Complete Troubleshooting Guide

31 threads Sep 9, 2025 PluginWp go maps (formerly wp google maps)

Content

Many users of the WP Go Maps (formerly WP Google Maps) plugin want to customize their maps by hiding or removing certain elements. This is a common request to create a cleaner user interface, remove distractions, or tailor the map to specific business needs. Based on common support queries, here are the most frequent requests and their solutions.

Common Elements Users Want to Hide and How to Do It

1. Hiding the Address in an InfoWindow

Problem: You want to show a map marker but hide the physical address that appears in the popup info window.

Solution: Navigate to Maps -> Settings -> InfoWindows. Look for the checkbox labeled "Hide address" and enable it.

2. Removing the "Get Directions" Button

Problem: The "Get directions" link appears in the marker info window, and you want a cleaner look.

Note: This functionality is part of the Pro version. For assistance with this, you would need to contact the 'WP Go Maps' team through their official Pro support channels, as WordPress.org forum guidelines restrict support for Pro features in the free plugin forums.

3. Disabling the Entire InfoWindow on Click

Problem: You don't want any info window to appear when a user clicks a marker.

Solution (Advanced): The free version does not have a setting for this. It requires a code modification. You would need to access the file wp-google-maps/js/wpgmaps.js and comment out the lines of code that control the infoWindow variable (commonly around lines 273, 274, 281, 282, 283, 403, 404, 411, 412, and 413). Warning: This is an advanced procedure, and these changes may be overwritten when the plugin updates.

4. Hiding Google's Default Points of Interest (POI)

Problem: Competing businesses, landmarks, or other default Google markers are cluttering your map.

Solution: On your map's edit page, find the Advanced Settings section. Enable the option labeled "Hide points of interest". This will suppress many of the default markers added by Google.

5. Hiding Specific POI Icons (e.g., cutlery, cup)

Problem: You want to hide the icon images for points of interest (like a restaurant icon) but keep the text labels.

Solution: This requires adding custom map styles. In your map's settings, find the area for custom JavaScript or styling (often labeled "Custom CSS" or "Custom JavaScript"). You can use a style like the following:

[
  {
    "featureType": "poi",
    "elementType": "labels.icon",
    "stylers": [
      {
        "visibility": "off"
      }
    ]
  }
]

6. Removing Map Controls (Zoom, Street View, Map/Satellite)

Problem: The UI controls for switching to satellite view, zooming, or accessing Street View are not needed for your map.

Solution: Go to Maps -> Settings -> General Settings. You will find several options to disable controls, including:

  • Disable Map Type Controls (hides Map/Satellite buttons)
  • Disable StreetView
  • Disable Zoom Controls
  • Disable Full Screen Control

7. Hiding the Latitude and Longitude in the InfoWindow

Problem: The coordinates are displayed in the info window popup, and you want to remove them.

Solution: Add the following CSS code to Maps -> Settings -> Advanced -> Custom CSS:

p.wpgmza_infowindow_address {
    display: none;
}

8. Disabling the Store Locator / Search Box

Problem: A search box is appearing on your map, and you want to remove it.

Solution: Edit your map and navigate to the Store Locator settings tab. Find the toggle for "Enable Store Locator" and switch it to "No". Save your map.

Important Notes and Troubleshooting Tips

  • Pro Features: Some highly requested features, like showing/hiding individual markers without deleting them or customizing the marker listing position, are only available in the Pro version. The 'WP Go Maps' team can only provide support for these features through their official Pro support channels.
  • Custom Code: Solutions involving CSS or JavaScript are powerful but can be affected by theme updates or plugin updates. Always test changes in a staging environment first.
  • Clear Cache: After making changes, especially CSS changes, remember to clear your WordPress cache and browser cache to see the results.

By following these steps, you should be able to hide most common elements and achieve a cleaner, more customized map for your website.

Related Support Threads Support