Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.