Support » Fixing WordPress » How to Remove only the Powered by WordPress Footer Links

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @ritulbhople07

    I am sorry but are you meaning that you only remove this line, “Theme: ColorMag by ThemeGrill. Powered by WordPress.”

    Thanks

    This is the way I tried and succeeded with my Web:
    Go to Appearance => Customize=> Footer Bottom=> CopyRight(you can edited the text about copyright here).
    Hope this is usefull for you.

    Hi,

    This theme has no support of customizer for footer copyright text. I have checked and found there is no easy way to do that.
    You can override the function which writes the footer text in functions.php file [it has a chance to overwrite upon next theme update, to avoid this you can use a child theme]
    Add the following function in your functions.php file,

    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>';
    
        $default_footer_value = sprintf( /* Translators: %1$s: Current year, %2$s: Site link */ esc_html__( '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; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
    
    }

    I hope this might help you.

    Thanks

    Thread Starter ritulbhople07

    (@ritulbhople07)

    Hi @voboghure,
    Thank you for your help.
    But I don’t know coding and also I am beginner to the WordPress. So, can you please elaborate for me how to do that step by step. It will be really helpful for me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.