Hello,
For some reason after updating the google map widget isn’t working on pages or the sidebar? any idea
Hi!
It seems like another plugin already loads the google map api file and this breaks the map widget. Try to insert following code into the functions.php file (insert it at the very bottom) to fix the issue
add_filter( 'avia_google_maps_widget_load_api', 'avia_remove_widget_script', 10, 2);
function avia_remove_widget_script($load, $config) {
return false;
}
Cheers!
Peter
after adding this my website goes blank? once I have removed the above code from functions.php it came back again. any idea
Hey!
The code is valid – I just tested it on my test server and it worked. Please delete the entire content/code within functions.php and then insert this code: http://pastebin.com/raw.php?i=G6GTHZ7p – it’s the same code I used on my test server and it should work on your server too.
Regards,
Peter
Yes I have pasted the exact code you provided but no result I can’t still see my map is contact us page.
Hey!
It seems like the “kitchenbug” plugin causes the issue. It adds following css code to the website
.clearfix {
display: inline-block;
}
which breaks the map widget. You’ve two options
1) Remove the kitchenbug plugin
2) Insert following code into the quick css field to overwrite the kitchenbug code
#top #wrap_all .clearfix {
display: block;
}
Regards,
Peter