Skip to content

Instantly share code, notes, and snippets.

@brandonratz
Created February 25, 2014 19:48
Show Gist options
  • Save brandonratz/9216295 to your computer and use it in GitHub Desktop.
Save brandonratz/9216295 to your computer and use it in GitHub Desktop.
A Pen by Brandon Ratzloff.
<!-- Drupal function to remove parent element -->
<div class="block-locationmap">
<a href="http://google.com">
<img src="http://maps.googleapis.com/maps/api/staticmap?zoom=15&size=490x400&markers=%2042.351693,-71.057478&sensor=false" />
</a>
</div>
// Drupal Wrapper -- Begin
(function($) {
$(document).ready(function() {
$(".block-locationmap img").unwrap();
});
})(jQuery);
// Drupal Wrapper -- End
.block-locationmap img {
background: #FFF;
box-sizing: border-box;
border: 1px solid #DDD;
padding: 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment