Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Google Maps Fix for Twitter's Bootstrap Tabs Plugin
add_action('wp_head','flippercode_maps_fix');
function flippercode_maps_fix()
{ ?>
<script type="text/javascript">
jQuery(document).ready(function($){
$('body').on('click','.nav-tabs li',function(){
if(typeof map1 != 'undefined') {
$(map1).data('wpgmp_maps').resize_map();
}
});
});
</script> <?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment