Created
August 3, 2016 06:44
-
-
Save wpflippercode/c7c59e5da3be436dc8970f35c37e9335 to your computer and use it in GitHub Desktop.
Google Maps Fix for Tabby Responsive Tabs Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_head','flippercode_maps_fix' ); | |
function flippercode_maps_fix() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($){ | |
$('body').on('click','.responsive-tabs__list__item',function(){ | |
var id = $(this).attr('id'); | |
if( id == 'tablist1-tab2') { | |
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