Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Edit the output of the footer with Genesis (advanced version)
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Edit the output of the footer with Genesis (advanced version)
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/footer-filter/
*/
add_filter( 'genesis_footer_output', 'rtug_footer_output_advanced' );
function rtug_footer_output_advanced( $output, $backtotop_text, $creds_text ) {
if ( is_single() )
return '<p>' . $backtotop_text . '</p>';
else
return '<p>' . $creds_text . '</p>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment