Google map API not working after theme update

This topic has 8 replies, 2 voices, and was last updated 7 years, 1 months ago ago by Jack Richardson

  • Avatar: lg731
    lg731
    Participant
    March 8, 2017 at 07:50

    I updated Legenda theme. Before updating, the Google Maps worked okay. But after updating to the new theme version, Google Maps no longer work. I edited the file /wp-content/themes/legenda/contacts.php, line 171: <script type=”text/javascript” src=”https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=false”></script&gt;
    (where “YOUR_API_KEY” is my API key.) What else do I need to do to make Google Maps work? Thank you.

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 9, 2017 at 11:20

    Hello,

    You don’t need edit theme files in the Legenda version 3.1, as theme option was added there to put Google Maps API Key. You can find it in WP Dashboard > Theme Options > Contact Form > Google Map API.

    Regards,
    Jack Richardson.

    Avatar: lg731
    lg731
    Participant
    March 9, 2017 at 11:52

    Hello,
    Yes, before installing v3.1, the previous version of the theme also had the Google Map API code inserted to the WP Dashboard > Theme Options > Contact Form > Google Map API. And on the previous theme version, the Google Maps worked fine. But after updating to 3.1, the API code is now displayed above the content on each page, and an error that the Google Map couldn’t be displayed.

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 9, 2017 at 14:11

    Hello,

    Please provide us with WP Dashboard and FTP credentials in private content area to check the issue.

    Regards,
    Jack Richardson.

    Avatar: lg731
    lg731
    Participant
    March 10, 2017 at 05:52

    See Private Content section. Thank you!

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 10, 2017 at 13:58

    Hello,

    Instead of using shortcode [gmaps] try to use “Contact Page” template http://prntscr.com/ei8x7m or add google map on page with “Default” template via Visual Composer element “Google Maps” http://prntscr.com/ei8y4c .

    Regards,
    Jack Richardson.

    Avatar: lg731
    lg731
    Participant
    March 10, 2017 at 21:18

    The page (see Private Content) was created using Legenda’s Contact Page template: the Google map is not working on that page.

    The Etheme drop-down list http://prntscr.com/eie0e6 offers Google map as an option, and clicking that option inserts the [gmaps] shortcode to the page. Why isn’t the Etheme [gmaps] shortcode working as it did before this theme update (version 3.1)?

    It appears the error might be related to the Etheme shortcode and/or the Legenda theme-options.php in the Legenda theme version 3.1 . Can this be fixed? Thank you.

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 13, 2017 at 15:56

    Hello,

    Please provide us with FTP credentials to your site in private content area.

    Regards,
    Jack Richardson.

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.