Created
May 26, 2020 17:19
-
-
Save ibndawood/f2b6c59746b59bdc3507706182404b89 to your computer and use it in GitHub Desktop.
Electro v2 - Copyright text in Mobile Footer
This file contains hidden or 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
add_action( 'init', 'ec_child_footer_credit', 10 ); | |
function ec_child_footer_credit() { | |
add_action( 'electro_footer_v2_handheld', 'electro_footer_credit', 75 ); | |
add_action( 'electro_mobile_footer_v1', 'electro_footer_credit', 75 ); | |
add_action( 'electro_mobile_footer_v2', 'electro_footer_credit', 75 ); | |
} | |
function electro_footer_credit() { | |
$website_title_with_url = sprintf( '<a href="%s">%s</a>', esc_url( home_url( '/' ) ), get_bloginfo( 'name' ) ); | |
$footer_copyright_text = apply_filters( 'electro_footer_copyright_text', sprintf( __( '© %s - All Rights Reserved', 'electro' ), $website_title_with_url ) ); | |
?><div style="margin-top: 1rem;" class="copyright"><?php echo wp_kses_post( $footer_copyright_text ); ?></div><?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment