I manage the Wählergemeinschaft Wrist website on a voluntary basis, as well as the Gemeinde Wrist website. For the Wählergemeinschaft site, which uses the ColorMag theme, I needed to remove the default footer credits and replace them with a custom copyright notice and relevant links.
Since ColorMag does not provide a built-in option for free to modify the footer text, I made the necessary changes in footer.php. This guide explains exactly what to modify.
Modifications in footer.php
1. Remove the Default Theme Copyright
ColorMag displays its footer credit via colormag_action_footer. To remove it, add this before rendering the new footer:
remove_action( 'colormag_action_footer', 'colormag_footer_socket_right_section', 15 );
remove_action( 'colormag_action_footer', 'colormag_footer_socket_left_section', 20 );
</code>
This prevents the “Theme: ColorMag by ThemeGrill. Powered by WordPress.” text from appearing.
2. Add a Custom Footer with Dynamic Year and Links
Instead of the removed theme footer, I added a custom section in footer.php with a dynamically updating year:
/**
* Get the current year dynamically
*/
$current_year = date('Y');
/**
* Open the standard footer container
*/
echo '<footer id="colophon" class="site-footer" role="contentinfo">';
echo '<div class="footer-container" style="display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; font-size:14px;">';
/**
* Left side: Copyright text
*/
echo '<div class="custom-copyright">';
echo 'Copyright © ' . $current_year . ' Wählergemeinschaft Wrist. Alle Rechte vorbehalten.';
echo '</div>';
/**
* Right side: Footer links
*/
echo '<div class="custom-footer-links">';
echo '<a href="https://web.wgw-wrist.de/impressum/" target="_blank">Impressum</a> | ';
echo '<a href="https://web.wgw-wrist.de/datenschutzerklaerung/" target="_blank">Datenschutzerklärung</a> | ';
echo '<a href="https://web.wgw-wrist.de/wp-admin/" target="_blank">Login</a> | ';
echo '<a href="https://wgw-wrist.de:2083/" target="_blank">CP-Login</a> | ';
echo '<a href="https://webmail.wgw-wrist.de/" target="_blank">WebMailer</a>';
echo '</div>';
/**
* Close the footer container
*/
echo '</div>';
echo '</footer>';
This ensures:
✅ The copyright text updates automatically every year.
✅ Custom links appear directly below the copyright.
✅ No more unwanted ColorMag branding.
This keeps the footer clean and fully customized without unnecessary theme branding. If you’re using ColorMag and need a similar change, this is a way to do it.

Leave a Reply