Created
November 18, 2015 01:48
-
-
Save reasonstousegenesis/99c2d3e4e1df9e5c9300 to your computer and use it in GitHub Desktop.
Edit the output of the footer with Genesis (advanced version)
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 | |
// 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