Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@siamkreative
Created March 29, 2016 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siamkreative/f38f9fefcd494b67c1ca to your computer and use it in GitHub Desktop.
Save siamkreative/f38f9fefcd494b67c1ca to your computer and use it in GitHub Desktop.
Adds a responsive wrapper to WP Google Maps Shortcode https://wordpress.org/support/view/plugin-reviews/wp-google-maps-shortcode
.gmap {
position: relative;
padding-bottom: 50%; // This is the aspect ratio
height: 0;
overflow: hidden;
}
.gmap > .wp_gmaps_canvas {
position: absolute;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment