About This Ticket

Map Position

by fattie / March 28, 2016, 8:41 pm


How do I change the place that is being shown on the map in the contact.html file?


Hi there!


To change the location of the map, please open the 'main.js' file in the js folder of the theme and find the following lines of code (should be near line no. 957) :

/*--------------- Google Maps -- Contact Page  ------------------*/
  var map;
  function initMap() {
    // Create a map object and specify the DOM element for display.
    var _location = new google.maps.LatLng(37.4538889, -122.1811111);
    map = new google.maps.Map(document.getElementById('map-section'), {
      scrollwheel: false,

In the above code, please replace the values of the Latitude and Longitude respectively with the Latitude and Longitude values of the location of your choice (that you would want to display) in the following line: 

var _location = new google.maps.LatLng(37.4538889, -122.1811111);

The respective Latitude and Longitude values to be changed are marked in bold in the above line of code.


Hope we were able to help you with this issue. Let us know if it worked and if you need any further help.

If you liked our theme and our support, please rate our theme in the download section of your Themeforest profile or you can simply follow this link: http://themeforest.net/downloads


Thanks and regards,

0effort Team


It worked.

Thanks for fast reply.  :)