Support » Theme: ColorMag » How to remove footer credits

  • Hii It is the best wordpress free theme ever, hats off to you. But can you tell me how to remove the footer credits? kindly!

Viewing 6 replies - 1 through 6 (of 6 total)
  • IF you do remove the links, you SHOULD place an image link back to the theme author somewhere in your theme, as it’s a free theme, and it’s one of the better ones (even though the authors dont know how to place a header image under the header logo – it wraps). So do the right thing and give them a free back link image on your site.

    Works in the 1.03

    to remove footer links:
    change the following in functions.php in the inc directory

    /**************************************************************************************/
    
    add_action( 'colormag_footer_copyright', 'colormag_footer_copyright', 10 );
    /**
     * function to show the footer info, copyright information
     */
    if ( ! function_exists( 'colormag_footer_copyright' ) ) :
    function colormag_footer_copyright() {
       $site_link = '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" ><span>' . get_bloginfo( 'name', 'display' ) . '</span></a>';
    
       $wp_link = '<a href="http://wordpress.org" target="_blank" title="' . esc_attr__( 'WordPress', 'colormag' ) . '"><span>' . __( 'WordPress', 'colormag' ) . '</span></a>';
    
       $tg_link =  '<a href="http://themegrill.com/themes/colormag" target="_blank" title="'.esc_attr__( 'ThemeGrill', 'colormag' ).'" rel="designer"><span>'.__( 'ThemeGrill', 'colormag') .'</span></a>';
    
       $default_footer_value = sprintf( __( 'Copyright &copy; %1$s %2$s. All rights reserved.', 'colormag' ), date( 'Y' ), $site_link ).'<br>'.sprintf( __( 'Theme: %1$s by %2$s.', 'colormag' ), 'ColorMag', $tg_link ).' '.sprintf( __( 'Powered by %s.', 'colormag' ), $wp_link );
    
       $colormag_footer_copyright = '<div class="copyright">'.$default_footer_value.'</div>';
       echo $colormag_footer_copyright;
    }
    endif;

    TO the following code:

    /**************************************************************************************/
    add_action( 'colormag_footer_copyright', 'colormag_footer_copyright', 10 );
    /**
     * function to show the footer info, copyright information
     */
    if ( ! function_exists( 'colormag_footer_copyright' ) ) :
    function colormag_footer_copyright() {
       $site_link = '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" ><span>' . get_bloginfo( 'name', 'display' ) . '</span></a>';
    
       $wp_link = '';
    
       $tg_link =  '';
    
       $default_footer_value = sprintf( __( 'Copyright &copy; %1$s %2$s. All rights reserved.', 'colormag' ), date( 'Y' ), $site_link );
    
       $colormag_footer_copyright = '<div class="copyright">'.$default_footer_value.'</div>';
       echo $colormag_footer_copyright;
    }
    endif;

    how about the version 1.1

    You search for this:

    <div class="footer-socket-left-sectoin">
    <?php do_action( 'colormag_footer_copyright' ); ?>
    </div>

    and put whatever you want instead of, for example:

    <div class="footer-socket-left-sectoin" style="color:#fff!important;">
    Poliklinika Ribnjak &copy; <?php echo date ('Y')?>.
    </div>

    I have tried both the solutions but its not working for me. the copyright area is not showing now. i tried to add in footer page but its not showing, can anyone help my theme version is 1.1.1

    Hello,

    The footer.php didn’t change from 1.1 to 1.1.1 so this should still work.

    If your footer is not showing at all, then you probably mistyped the code.
    Can you please post your entire footer.php here?

    Thanks gh421, Code works for me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove footer credits’ is closed to new replies.