Change default map that displays on "Add New Listing" page

Discussion in 'GeoCraft WordPress Theme' started by mealea, Jan 23, 2018.

  1. mealea

    mealea New Member

    Joined:
    Dec 13, 2012
    Messages:
    16
    Likes Received:
    2
    Hi Guys, can you help with this little problem. I have looked through the other threads but cannot find the answer.

    I have the Google Map API installed and working. When I create a new listing the correct map shows for the business. All good there.

    However, when you first go to the "add new listing" page the default map showing is Annapolis, USA. How can I change that to the city my website is about. (ie. Paris, France).

    Thanks.
     
  2. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49
    Hello,

    Thanks for contacting us,

    It can be done via source code manipulation, Kindly send the below-mentioned credential details at [email protected] along with the thread link.

    WordPress Website URL: -
    WordPress Username: -
    WordPress Password: -

    We will do it for you.

    Regards,
    Akbar
    InkThemes.com
     
  3. mealea

    mealea New Member

    Joined:
    Dec 13, 2012
    Messages:
    16
    Likes Received:
    2
    Thanks for the quick reply Akbar. Is there any chance you could just tell me the name of the .php file and what line to change so I can do it myself? I like to learn about the themes I am working with.
    Cheers.
     
  4. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49
    Hi,

    Thanks for getting back to us,

    Ye, you can do it by yourself. Go to geocrafttheme-v2/libary/map then find and open class-map.php file. Go to line number 35 and change the value of latitude and longitude according to the desired location.

    Just follow the attached screenshot.

    Do let me know if you need further assistance.

    I will be glad to assist you.

    Regards,
    Akbar
    InkThemes.com
     

    Attached Files:

  5. mealea

    mealea New Member

    Joined:
    Dec 13, 2012
    Messages:
    16
    Likes Received:
    2
    Thanks Akbar. I will have a go at it tonight.
    Cheers.
     
  6. mealea

    mealea New Member

    Joined:
    Dec 13, 2012
    Messages:
    16
    Likes Received:
    2
    Akbar, I located the class-map.php file and made a copy of it in my child theme. I changed line 35 and saved changes. It still shows default USA map.
    I have sent an email off to [email protected] with website access details to see if this can be rectified.
    Many thanks.
     
  7. mealea

    mealea New Member

    Joined:
    Dec 13, 2012
    Messages:
    16
    Likes Received:
    2
    Akbar, many thanks for fixing up this little annoyance. Good job.
    Cheers.
     
  8. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49

Share This Page