Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created November 18, 2015 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/99c2d3e4e1df9e5c9300 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/99c2d3e4e1df9e5c9300 to your computer and use it in GitHub Desktop.
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