This topic has 4 replies, 2 voices, and was last updated 9 years, 2 months ago ago by Eva Kemp
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
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.
Hello,
thank you for your prompt answer. It is working now.
BR
Peter
Hello,
You’re welcome.
Regards,
Eva Kemp.
Tagged: design, footer, google maps, seo friendly, static blocks, template, woocommerce wordpress
The issue related to '‘Google maps in footer using static blocks’' has been successfully resolved, and the topic is now closed for further responses