How to Hide and Remove Elements in WP Go Maps: A Complete Troubleshooting Guide
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
-
Remove Other’s Business Listing from Our Maphttps://wordpress.org/support/topic/remove-others-business-listing-from-our-map-2/
-
Marker listing detailed but NO picturehttps://wordpress.org/support/topic/marker-listing-detailed-but-no-picture/
-
Pre-sale question: How to make the red icon disappear?https://wordpress.org/support/topic/pre-sale-question-how-to-make-the-red-icon-disappear/
-
Hide restaurant, shop … labelshttps://wordpress.org/support/topic/hide-restaurant-shop-labels/
-
Hide store locator and open info window automaticallyhttps://wordpress.org/support/topic/hide-store-locator-and-open-info-window-automatically/
-
InfoBoxhttps://wordpress.org/support/topic/infobox/
-
Hide “no results found in this location. Please try again”https://wordpress.org/support/topic/hide-no-results-found-in-this-location-please-try-again/
-
hide category columnhttps://wordpress.org/support/topic/hide-category-column/
-
Closing the directions boxhttps://wordpress.org/support/topic/closing-the-directions-box/
-
Remove “show options” on Itineraryhttps://wordpress.org/support/topic/remove-show-options-on-itinerary/
-
Hidding addresshttps://wordpress.org/support/topic/hidding-address/
-
Infowindow customizationhttps://wordpress.org/support/topic/infowindow-customization-3/
-
How to disable Map / Satellite type and Street View buttons?https://wordpress.org/support/topic/how-to-disable-map-satellite-and-street-view-buttons/
-
Can I restore the map after hitting Trash?https://wordpress.org/support/topic/can-i-restore-the-map-after-hitting-trash/
-
Geolocation Prompt only on demand?https://wordpress.org/support/topic/geolocation-prompt-only-on-demand/
-
How to make a polygon area linked?https://wordpress.org/support/topic/how-to-make-a-polygon-area-linked/
-
Location List Positionhttps://wordpress.org/support/topic/location-list-position/
-
Hide Infobox entirelyhttps://wordpress.org/support/topic/hide-infobox-entirely/
-
Remove map on custom pagehttps://wordpress.org/support/topic/remove-map-on-custom-page/
-
remove map and satellite buttonshttps://wordpress.org/support/topic/remove-map-and-satellite-buttons/
-
Remove hint on hoverhttps://wordpress.org/support/topic/remove-hint-on-hover/
-
How to get rid of the search box ?https://wordpress.org/support/topic/how-to-get-rid-of-the-search-box/
-
ENABLE/DISABLE option ?https://wordpress.org/support/topic/enabledisable-option/
-
search box to hidehttps://wordpress.org/support/topic/search-box-to-hide/
-
how to hide lat/long coord in the infowindow?https://wordpress.org/support/topic/how-to-hide-lat-long-coord-in-the-infowindow/
-
Presales Question: I want to hide default POI’shttps://wordpress.org/support/topic/presales-question-i-want-to-hide-default-pois/
-
Hide "Get directions"https://wordpress.org/support/topic/hide-get-directions/
-
shortcode question on static pagehttps://wordpress.org/support/topic/shortcode-does-not-work-on-static-page/
-
Borlabs Cookie HowTo neededhttps://wordpress.org/support/topic/borlabs-cookie-howto-needed/
-
How to disable infowindowhttps://wordpress.org/support/topic/how-to-disable-infowindow/
-
How to Hide Information Windowhttps://wordpress.org/support/topic/how-to-hide-information-window/