Skip to content

Instantly share code, notes, and snippets.

@farookibrahim
Created May 1, 2020 10:06
Show Gist options
  • Save farookibrahim/939b672f64d436acca67ed0c50d89c28 to your computer and use it in GitHub Desktop.
Save farookibrahim/939b672f64d436acca67ed0c50d89c28 to your computer and use it in GitHub Desktop.
Electro - Footer replace payment icons with social icons
if ( ! function_exists( 'electro_copyright_bar_v2' ) ) {
function electro_copyright_bar_v2() {
$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 ) );
$credit_card_icons = apply_filters( 'electro_footer_credit_card_icons', '' );
if ( apply_filters( 'electro_enable_footer_credit_block', true ) ) : ?>
<div class="copyright-bar">
<div class="container">
<div class="copyright"><?php echo wp_kses_post( $footer_copyright_text ); ?></div>
<div class="payment"><?php electro_footer_social_icons(); ?></div>
</div>
</div><?php
endif;
}
}
if( ! function_exists( 'el_child_init' ) ) {
function el_child_init(){
remove_action( 'electro_footer_contact', 'electro_footer_social_icons', 40 );
}
}
add_action( 'init', 'el_child_init' );
.payment .footer-social-icons {
margin-bottom: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment