10. Magento. How to remove Google Map from Contacts page
1 min readYou may want to remove the Google Map from the Contacts page of your Magento store because you do not have any physical address or for some other reasons:
So, let’s learn how to do this.
- Access your server using FTP/File Manager and navigate to your Magento root directory.
- Locate the contacts_map.phtml file in the /app/design/frontend/default/themexxxx/template/tm/googlemap/ directory, where xxxx is your theme number.
- Open the file for editing and look for the following code:
1
2
3
4
5
6
|
<div class=”block block-contacts-googlemap”>
<div class=”block-content”>
<div id=”map_canvas” style=”width:<?php echo $tm_googlemap_contacts_settings[‘width’]; ?>;
height:<?php echo $tm_googlemap_contacts_settings[‘height’]; ?>”></div>
</div>
</div>
|
Simply comment out the aforementioned block of code so it looks like on the screenshot below:
Save the file and refresh the Contacts page to see changes.
The Google Map has been successfully removed from the page:
This is the end of the tutorial, you have learnt how to remove Google Map from Contacts page in your Magento store.