{"id":849,"date":"2025-02-03T12:19:57","date_gmt":"2025-02-03T10:19:57","guid":{"rendered":"https:\/\/blog.gentz.com.de\/bloggentz\/?p=849"},"modified":"2025-03-03T15:49:33","modified_gmt":"2025-03-03T13:49:33","slug":"removing-the-colormag-theme-copyright-and-adding-custom-footer-links","status":"publish","type":"post","link":"https:\/\/gentz.cloud\/?p=849","title":{"rendered":"Removing the ColorMag Theme Copyright and Adding Custom Footer Links"},"content":{"rendered":"\n<p>I manage the <strong><a href=\"https:\/\/web.wgw-wrist.de\/\" target=\"_blank\" rel=\"noreferrer noopener\">W\u00e4hlergemeinschaft Wrist<\/a><\/strong> website on a voluntary basis, as well as the <strong><a href=\"https:\/\/wrist.de\/\" target=\"_blank\" rel=\"noreferrer noopener\">Gemeinde Wrist<\/a><\/strong> website. For the W\u00e4hlergemeinschaft site, which uses the <strong>ColorMag<\/strong> theme, I needed to remove the default footer credits and replace them with a custom copyright notice and relevant links.<\/p>\n\n\n\n<p>Since ColorMag does not provide a built-in option for free to modify the footer text, I made the necessary changes in <code>footer.php<\/code>. This guide explains exactly what to modify.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Modifications in <code>footer.php<\/code><\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Remove the Default Theme Copyright<\/strong><\/h3>\n\n\n\n<p>ColorMag displays its footer credit via <code>colormag_action_footer<\/code>. To remove it, add this before rendering the new footer:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nremove_action( &#039;colormag_action_footer&#039;, &#039;colormag_footer_socket_right_section&#039;, 15 );\nremove_action( &#039;colormag_action_footer&#039;, &#039;colormag_footer_socket_left_section&#039;, 20 );\n&lt;\/code&gt;\n<\/pre><\/div>\n\n\n<p>This prevents the &#8220;Theme: ColorMag by ThemeGrill. Powered by WordPress.&#8221; text from appearing.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Add a Custom Footer with Dynamic Year and Links<\/strong><\/h3>\n\n\n\n<p>Instead of the removed theme footer, I added a custom section in <code>footer.php<\/code> with a dynamically updating year:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\t \/**\n\t * Get the current year dynamically\n\t *\/\n\t$current_year = date(&#039;Y&#039;);\n\n\t\/**\n\t * Open the standard footer container\n\t *\/\n\techo &#039;&lt;footer id=&quot;colophon&quot; class=&quot;site-footer&quot; role=&quot;contentinfo&quot;&gt;&#039;;\n\techo &#039;&lt;div class=&quot;footer-container&quot; style=&quot;display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; font-size:14px;&quot;&gt;&#039;;\n\n\t\/**\n\t * Left side: Copyright text\n\t *\/\n\techo &#039;&lt;div class=&quot;custom-copyright&quot;&gt;&#039;;\n\techo &#039;Copyright \u00a9 &#039; . $current_year . &#039; W\u00e4hlergemeinschaft Wrist. Alle Rechte vorbehalten.&#039;;\n\techo &#039;&lt;\/div&gt;&#039;;\n\n\t\/**\n\t * Right side: Footer links\n\t *\/\n\techo &#039;&lt;div class=&quot;custom-footer-links&quot;&gt;&#039;;\n\techo &#039;&lt;a href=&quot;https:\/\/web.wgw-wrist.de\/impressum\/&quot; target=&quot;_blank&quot;&gt;Impressum&lt;\/a&gt; | &#039;;\n\techo &#039;&lt;a href=&quot;https:\/\/web.wgw-wrist.de\/datenschutzerklaerung\/&quot; target=&quot;_blank&quot;&gt;Datenschutzerkl\u00e4rung&lt;\/a&gt; | &#039;;\n\techo &#039;&lt;a href=&quot;https:\/\/web.wgw-wrist.de\/wp-admin\/&quot; target=&quot;_blank&quot;&gt;Login&lt;\/a&gt; | &#039;;\n\techo &#039;&lt;a href=&quot;https:\/\/wgw-wrist.de:2083\/&quot; target=&quot;_blank&quot;&gt;CP-Login&lt;\/a&gt; | &#039;;\n\techo &#039;&lt;a href=&quot;https:\/\/webmail.wgw-wrist.de\/&quot; target=&quot;_blank&quot;&gt;WebMailer&lt;\/a&gt;&#039;;\n\techo &#039;&lt;\/div&gt;&#039;;\n\n\t\/**\n\t * Close the footer container\n\t *\/\n\techo &#039;&lt;\/div&gt;&#039;;\n\techo &#039;&lt;\/footer&gt;&#039;;\n<\/pre><\/div>\n\n\n<p>This ensures:<br>\u2705 The copyright text updates automatically every year.<br>\u2705 Custom links appear directly below the copyright.<br>\u2705 No more unwanted ColorMag branding.<\/p>\n\n\n\n<p>This keeps the footer clean and fully customized without unnecessary theme branding. If you&#8217;re using ColorMag and need a similar change, this is a way to do it.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I manage the W\u00e4hlergemeinschaft Wrist website on a voluntary basis, as well as the Gemeinde Wrist website. For the W\u00e4hlergemeinschaft 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<\/p><\/div>\n<div class=\"blog-btn\"><a href=\"https:\/\/gentz.cloud\/?p=849\" class=\"home-blog-btn\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-849","post","type-post","status-publish","format-standard","hentry","category-tips-ricks"],"_links":{"self":[{"href":"https:\/\/gentz.cloud\/index.php?rest_route=\/wp\/v2\/posts\/849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gentz.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gentz.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gentz.cloud\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gentz.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=849"}],"version-history":[{"count":6,"href":"https:\/\/gentz.cloud\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions"}],"predecessor-version":[{"id":857,"href":"https:\/\/gentz.cloud\/index.php?rest_route=\/wp\/v2\/posts\/849\/revisions\/857"}],"wp:attachment":[{"href":"https:\/\/gentz.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gentz.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gentz.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}