Created
May 1, 2020 10:06
-
-
Save farookibrahim/939b672f64d436acca67ed0c50d89c28 to your computer and use it in GitHub Desktop.
Electro - Footer replace payment icons with social icons
This file contains 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
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( __( '© %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' ); |
This file contains 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
.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