Google maps in footer using static blocks

This topic has 4 replies, 2 voices, and was last updated 8 years, 7 months ago ago by Eva Kemp

  • Avatar: pedro8
    pedro8
    Participant
    October 2, 2015 at 17:02

    Hello,

    I have a problem with displaying google maps in footer using static blocks. If I use classic embed code it is working but with Ultimate VC Google map element not.
    If I use in post or page, it is working but in footer not. I have and error: “Uncaught ReferenceError: google is not defined”.

    I tried to enable optimized JS in Ultimate addons setting but it doesnt help.

    Do you have please any suggestion how to fix it?

    Thank you in advance
    Peter

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    October 2, 2015 at 18:46

    Hello,

    Please edit the file wp-content/themes/woopress/framework/theme-functions.php, find the function
    if(!function_exists('etheme_enqueue_styles')) and add this code wp_enqueue_script('googleapis'); after the line wp_enqueue_script('jquery');

    After that check Google map.

    Regards,
    Eva Kemp.

    Avatar: pedro8
    pedro8
    Participant
    October 2, 2015 at 22:09

    Hello,

    thank you for your prompt answer. It is working now.

    BR
    Peter

    Avatar: Eva
    Eva Kemp
    Support staff
    October 3, 2015 at 08:56

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

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

The issue related to '‘Google maps in footer using static blocks’' has been successfully resolved, and the topic is now closed for further responses

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