• Hello team,

    Please help me how to get rid of the text “By sparke wp theme” in footer in child theme.

    Thanks in advance

    • This topic was modified 7 years, 10 months ago by Anil Kuhadwal.
Viewing 1 replies (of 1 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello anil-kuhadwal,

    Add below code into your current child theme’s functions.php file.

    
    /** Remove whole footer text**/
    add_action( 'init', 'remove_footer_text' );
    function  remove_footer_text(){
     remove_action( 'metrostore_sub_footer', 'metrostore_footer_credit', 10 );
    }
    
    /**Add Copyright text with blog name **/
    if ( ! function_exists( 'metrostore_custom_footer_credit' ) ) {
     function metrostore_custom_footer_credit() { ?>
    
       <div class="col-sm-6 col-xs-12 coppyright">
         <?php $copyright = esc_attr( get_theme_mod( 'metrostore_footer_copyright_setting' )); if( !empty( $copyright ) ) { ?>
               <?php echo esc_html( apply_filters( 'metrostore_copyright_text', $copyright . ' - ' . get_bloginfo( 'name' ) ) ); ?>  
         <?php } else { ?>
           <?php echo esc_html( apply_filters( 'metrostore_copyright_text', $content = '&copy; ' . date( 'Y' ) . ' - ' . get_bloginfo( 'name' ) ) ); ?>
         <?php } ?>
       </div>
       <?php
     }
    }
    add_action( 'metrostore_sub_footer', 'metrostore_custom_footer_credit' );

    Hope this will helps you.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Footer in child theme’ is closed to new replies.