Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
<!-- ENSURE BELOW PASTES DIRECTLY INTO THE HEAD OF THE PAGE --> | |
<!-- SMOOTH SCROLL --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script> | |
$(function() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
<div class="post-thumbnail"> | |
//Adjusted the code so it integrates Wordpresses default thumbnail size - This can be changed in Settings -> Media | |
<?php if ( has_post_thumbnail() ) { the_post_thumbnail('thumbnail'); } else | |
{ ?> | |
<img src="<?php bloginfo('template_directory'); ?>/MYIMAGESFILE/MYFEATUREIMAGE.jpg" alt="Post Thumbnail" /> | |
<?php } ?> | |
</div> | |
<!doctype html> | |
<html> | |
<head> | |
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script> | |
<meta charset="UTF-8"> | |
<title>Example Google Map</title> | |
</head> | |
<body> | |
<div id="map-canvas" style="height:400px; width:600px;"></div> | |
<script> |