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
<?php | |
$recipes = WPRM_Recipe_Manager::get_recipes(); | |
foreach ( $recipes as $recipe_id => $options ) { | |
$recipe = WPRM_Recipe_Manager::get_recipe( $recipe_id ); | |
if ( ! $recipe->servings() ) { | |
$import_source = get_post_meta( $recipe_id, 'wprm_import_source', true ); |
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); |
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 = $( '.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
<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
<?php // do not include this line | |
add_action( 'genesis_entry_content', 'oc_snippet_do_disclosure', 1 ); | |
function oc_snippet_do_disclosure() { | |
if ( is_singular( 'post' ) ) { | |
echo '<p><strong>Disclosure: </strong>This post may contain affiliate links. I receive a small commission at no cost to you when you make a purchase using my link.</p>'; | |
} | |
} |
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 // Do not include this line | |
add_action( 'init', 'oc_force_post_update' ); | |
function oc_force_post_update() { | |
$my_posts = get_posts( | |
array( | |
'post_type' => 'post', | |
'post_status' => 'publish', | |
'posts_per_page' => 10, | |
'offset' => 0, |
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
# @see https://really-simple-ssl.com/knowledge-base/manually-insert-htaccess-redirect-http-to-https/ | |
# BEGIN Redirect to HTTPS | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
# END Redirect to HTTPS |