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

3510 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

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 38Elementor Shortcodes Built-In
  • 45FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 23Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language Third Party Plugins
  • 6Other Third party Plugins
  • 19Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 36Property Pages & Layouts
  • 31Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Translations & Languages
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 8WPResidence Elementor Studio
  • 50WPResidence Translate Plugin

Join Us On

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