Created
July 29, 2018 13:03
-
-
Save jayhill90/6a6db1c89629d1674c1ba9e272c2062b to your computer and use it in GitHub Desktop.
Modify the copyright information in a Genesis child theme
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 | |
/** | |
* Modifies the copyright output in a genesis child theme. | |
* Drop this function and filter into your child theme's functions.php file. | |
* Don't include the opening php tag. | |
*/ | |
add_filter( 'genesis_footer_output', 'explore_footer_output', 10, 3); | |
function explore_footer_output( $output, $backtotop_text, $creds_text ) { | |
$child_creds_text = 'Copyright ' . date( 'Y') . ' YOUR COMPANY'; | |
$output = str_replace( $creds_text, $child_creds_text, $output); | |
return $output; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment