MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Turkey on July 18, 2015, 05:26:59 PM

Title: How to edit the footer of Colormag WordPress theme
Post by: Turkey on July 18, 2015, 05:26:59 PM
Follow the below steps to remove Theme: ColorMag by ThemeGrill. Powered by WordPress. from your blog footer.

(https://www.milesweb.com/blog/wp-content/uploads/2019/03/728X90-1.png) (https://www.milesweb.com/wordpress-hosting.php?utm_source=how-to's&utm_medium=how-to-edit-the-footer-of-colormag-wordpress-theme&utm_campaign=MW-Forum)

Login to your WordPress Dashboard.

Go to Appearance => Themes => Editor

Select inc/functions.php from the right side bar.

Search for colormag_footer_copyright and delete the following code.

Quote$wp_link = '<a href="http://wordpress.org" target="_blank" title="' . esc_attr__( 'WordPress', 'colormag' ) . '"><span>' . __( 'WordPress', 'colormag' ) . '</span></a>';

Quote$tg_link =  '<a href="http://themegrill.com/themes/colormag" target="_blank" title="'.esc_attr__( 'ThemeGrill', 'colormag' ).'" rel="designer"><span>'.__( 'ThemeGrill', 'colormag') .'</span></a>';

From the below code, delete the code highlighted in bold:

Quote$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 );

After deleting the above code which is highlighted in bold, ensure that you have the following code:

Quote$default_footer_value = sprintf( __( 'Copyright &copy; %1$s %2$s. All rights reserved.', 'colormag' ), date( 'Y' ), $site_link );