This file contains 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
<?php // don't include this line | |
/** | |
* Customize the credits. | |
* @since 1.0.0 | |
*/ | |
add_filter( 'genesis_footer_creds_text', 'customgenesis_footer_copyright' ); | |
function customgenesis_footer_copyright() { | |
$creds = '[footer_copyright before="Copyright" after=" "]' . get_bloginfo ( 'name' ); | |
return $creds; |
This file contains 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
(function($) { | |
$(function() { | |
var jumpID = $( '.mpprecipe-container-border' ).attr( 'id' ); | |
var printID = $( '.butn-link.mpp-button' ).attr( 'onclick' ); | |
var printIDEscaped = htmlEscape(printID); | |
if( jumpID ) { | |
if( printID ) { // if jump AND print | |
$( '.content .entry-header' ).append( '<div class="recipe-buttons"><a class="added-button jump" href="#' + jumpID + '">Jump to Recipe <i class="fa fa-book" aria-hidden="true"></i></a><a class="added-button print" title="Print this recipe" onclick="' + printIDEscaped + '">Print Recipe <i class="fa fa-print" aria-hidden="true"></i></a></div>' ); | |
} else { // if JUST jump |
This file contains 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
<?php // Do NOT copy this line. :) | |
/** | |
* Automatically insert WPRM buttons | |
* | |
* @author Lauren Gray, Once Coupled | |
* @link https://oncecoupled.com | |
*/ | |
add_action('genesis_entry_content', 'oncecoupled_wprm_buttons', 1); | |
function oncecoupled_wprm_buttons() { |
This file contains 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
<?php // Don't paste this opening line! | |
function remove_more_link_scroll( $link ) { | |
$link = preg_replace( '|#more-[0-9]+|', '', $link ); | |
return $link; | |
} | |
add_filter( 'the_content_more_link', 'remove_more_link_scroll' ); |
This file contains 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
<script type="text/javascript"> | |
(function($) { | |
$(function() { | |
var jumpID = $( '.zlrecipe-container-border' ).attr( 'id' ); | |
if( jumpID ) { | |
$( 'body' ).addClass( 'skipLink' ); | |
$( '.content .entry-header' ).append( '<a href="#' + jumpID + '" class="skip">Skip to Recipe</a>' ); | |
} | |
}); | |
})(jQuery); |
This file contains 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
<?php | |
/** | |
* | |
* Infinite Scroll | |
* | |
* @since 1.0.0 | |
* | |
* @author Lauren Gray | |
* @author Bill Erickson |
This file contains 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
<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); |
This file contains 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
<script type="text/javascript"> | |
(function($) { | |
$(function() { | |
var jumpID = $( '.mpprecipe-container-border' ).attr( 'id' ); | |
if( jumpID ) { | |
$( 'body' ).addClass( 'skipLink' ); | |
$( '.content .entry-header' ).append( '<a href="#' + jumpID + '" class="skip">Skip to Recipe</a>' ); | |
} | |
}); | |
})(jQuery); |
This file contains 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
<script type="text/javascript"> | |
(function($) { | |
$(function() { | |
var jumpID = $( '.easyrecipe' ).attr( 'id' ); | |
if( jumpID ) { | |
$( 'body' ).addClass( 'skipLink' ); | |
$( '.content .entry-header' ).append( '<a href="#' + jumpID + '" class="skip">Skip to Recipe</a>' ); | |
} | |
}); | |
})(jQuery); |