Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created May 26, 2020 17:19
Show Gist options
  • Save ibndawood/f2b6c59746b59bdc3507706182404b89 to your computer and use it in GitHub Desktop.
Save ibndawood/f2b6c59746b59bdc3507706182404b89 to your computer and use it in GitHub Desktop.
Electro v2 - Copyright text in Mobile Footer
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( __( '&copy; %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