How to Remove The Footer Copyright Text Of ColorMag WordPress Theme

If you are using ColorMag WordPress theme, the project structure of the theme has changed. So, making code-level changes, for example to remove the footer copyright text, will require some amount of time to get through the project structure changes. This has made changing the the footer copyright text different from the earlier versions.

In this post I am going to share how you can change the footer copyright of the ColorMag WordPress theme in its latest version.

Let’s Start

Step 1:

Login to your WordPress site

Step 2:

In the WordPress dashboard, go to

Appearance → Theme Editor → inc → hooks → footer.php

How to change footer copyright text
How to change footer copyright text

The code you’ll have to tweak is given below. Based on your requirement, you can either remove the theme credential links or manipulate it to fulfil your requirements.

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="https://wordpress.org" target="_blank" title="' . esc_attr__( 'WordPress', 'colormag' ) . '"><span>' . esc_html__( 'WordPress', 'colormag' ) . '</span></a>';

        $tg_link = '<a href="https://themegrill.com/themes/colormag" target="_blank" title="' . esc_attr__( 'ThemeGrill', 'colormag' ) . '" rel="author"><span>' . esc_html__( 'ThemeGrill', 'colormag' ) . '</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 ) . '<br>' . sprintf( /* Translators: %1$s: Theme name, %2$s: ThemeGrill site link */ esc_html__( 'Theme: %1$s by %2$s.', 'colormag' ), 'ColorMag', $tg_link ) . ' ' . sprintf( /* Translators: %s: WordPress link */ esc_html__( 'Powered by %s.', 'colormag' ), $wp_link );

        $colormag_footer_copyright = '<div class="copyright">' . $default_footer_value . '</div>';

        echo $colormag_footer_copyright; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped

    }

In the earlier versions it used to be something like this: Appearance → Editor → inc → functions.php

And find this text

It’s Done

I am using ColorMag theme and I know how to tweak it. If you have any problem in ColorMag theme yet or in any other WordPress theme, don’t hesitate to comment below, I will try to help you.

Sonam Dargay

Kuzu Zangpo la! I am Sonam Dargay, a student in the College of Science and Technology affiliated to The Royal University of Bhutan. I am a tech enthusiast student, studying Bachelor of Engineering in Information Technology.

Leave a Reply

%d bloggers like this: