WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Maps & Location Settings / How to remove Google Maps header from mobile devices only

How to remove Google Maps header from mobile devices only

3681 views 0

Go into header_media.php and you have there in 2 places get_template_part(‘templates/google_maps_base’);

replace that with

if ( !wp_is_mobile() ) {
	get_template_part('templates/google_maps_base');
}

Please note that some css adjustments may be required after this change

For half map go in templates\half_map_core.php  and make the same change in one place.

Maps & Location Settings

Related Articles

  • How to disable Maps for the entire website
  • Technical: Edit Open in Google Maps link with property latitude and longitude
  • Technical: Google Points of Interest on Single Property Map
  • How to change the Maps Preloader
MLSImportWordPress IDX Plugin for MLS ListingsImport MLS listings into your WordPress website, customize your property pages, and keep your inventory updated.Start free 30-day trial →

Help Categories

  • 111 Installation & Changelog
  • 19Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 14Footer
  • 38Header
  • 2IDX & MLSImport
  • 23Maps & Location Settings
  • 50Multilingual Websites – WPEstate Translate (Included)
  • 21Pages & Page Templates
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 38Property Single Page
  • 32Search & Filtering
  • 170Technical how to | Custom Code
  • 9Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Theme Translation & Localization
  • 28Third Party Plugins Compatible
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 9WPResidence Elementor Studio
  • 39WPResidence Elementor Widgets
  • 79WPResidence FAQ

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API