Skip to content

Instantly share code, notes, and snippets.

@graylaurenm
graylaurenm / genesis-header-scripts.html
Last active March 6, 2017 01:28
WP Ultimate Recipe "jump to recipe" starter
<script type="text/javascript">
(function($) {
$(function() {
var jumpID = $( '.wpurp-container' ).attr( 'id' );
if( jumpID ) {
$( 'body' ).addClass( 'skipLink' );
$( '.content .entry-header' ).append( '<a href="#' + jumpID + '" class="skip">Skip to Recipe</a>' );
}
});
})(jQuery);