Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mckernanin
Created August 16, 2016 13:51
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 mckernanin/e523a1e779c9bfacb5a5ae9e72793408 to your computer and use it in GitHub Desktop.
Save mckernanin/e523a1e779c9bfacb5a5ae9e72793408 to your computer and use it in GitHub Desktop.
Quickly replace the text in Divi's footer
<?php
function mck_replace_footer_text( $text ){
if ( 'Designed by %1$s | Powered by %2$s' === $text ) {
$text = '&copy; ' . date('Y') . ' ' . get_bloginfo( 'name' ) . '. All rights reserved.';
}
return $text;
}
add_filter( 'gettext', 'mck_replace_footer_text' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment