{"id":1966215,"date":"2025-08-26T08:28:57","date_gmt":"2025-08-26T12:28:57","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1966215"},"modified":"2025-08-26T08:28:58","modified_gmt":"2025-08-26T12:28:58","slug":"category-colors-legacy-layout","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/category-colors-legacy-layout\/","title":{"rendered":"Enabling the legacy Category Colors layout following its integration into TEC"},"content":{"rendered":"\n<p>As part of integrating <strong>Category Colors<\/strong> into <strong>The Events Calendar<\/strong>, the original legend layout was removed. But don&#8217;t worry, you can still bring it back with some simple custom tweaks.<\/p>\n\n\n\n<p>Please follow the steps below to enable this layout:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Connect to your host files using an FTP connection or your hosting panel.<\/li>\n\n\n\n<li>Copy the file&nbsp;<code>category-color-picker.php<\/code> &nbsp;from&nbsp;<code>wp-content\/plugins\/the-events-calendar\/src\/views\/v2\/components\/top-bar<\/code><\/li>\n\n\n\n<li>Put the file under&nbsp;<code>wp-content\/themes\/[your-theme]\/tribe\/events\/v2\/components\/top-bar\/<\/code><\/li>\n\n\n\n<li>Open the file in the text editor and replace the code with the first one provided&nbsp;<a href=\"https:\/\/gist.github.com\/andrasguseo\/4aced313debb1bf9952e5d9a127d14ef\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/li>\n\n\n\n<li>Enable <strong>Custom CSS<\/strong> option under <strong>Events &gt; Settings &gt; Display &gt; Category Colors<\/strong>.<\/li>\n\n\n\n<li>Then go to&nbsp;<strong>Appearance &gt; Customize &gt; Additional CSS<\/strong>&nbsp;and add the CSS code that was given on&nbsp;the same page:<br><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1457\" height=\"850\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-07-08-at-9.00.04-AM.png\" alt=\"\" class=\"wp-image-1966464\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-07-08-at-9.00.04-AM.png 1457w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-07-08-at-9.00.04-AM-300x175.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-07-08-at-9.00.04-AM-1024x597.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-07-08-at-9.00.04-AM-768x448.png 768w\" sizes=\"auto, (max-width: 1457px) 100vw, 1457px\" \/><\/figure>\n\n\n\n<p>If your site has caching enabled, you should see the legacy <strong>Category Colors<\/strong> layout after clearing the cache.<\/p>\n\n\n\n<p class=\"has-theme-palette-8-background-color has-background\">\ud83d\udc4b The CSS in the customizer may not be applicable to certain themes, such as Divi. So it is best to use other methods:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A third-party plugin that lets you add CSS, e.g., <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" rel=\"nofollow\">Code Snippets<\/a>.<\/li>\n\n\n\n<li>The theme&#8217;s style.css file, preferably the child theme.<\/li>\n\n\n\n<li>If the theme has a specific option to add custom CSS, e.g.,&nbsp;<strong>Divi &gt; Theme Options &gt; Custom CSS<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1888\" height=\"777\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-17-at-3.42.59-PM.jpeg\" alt=\"\" class=\"wp-image-1966461\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-17-at-3.42.59-PM.jpeg 1888w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-17-at-3.42.59-PM-300x123.jpeg 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-17-at-3.42.59-PM-1024x421.jpeg 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-17-at-3.42.59-PM-768x316.jpeg 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Image-2025-08-17-at-3.42.59-PM-1536x632.jpeg 1536w\" sizes=\"auto, (max-width: 1888px) 100vw, 1888px\" \/><\/figure>\n\n\n\n<p>This change applies to calendar shortcodes as well as the main calendar page.<\/p>\n\n\n\n<p>Version 6.14.2 of The Events Calendar was used to test this code.<\/p>\n\n\n\n<p><br>Review following guides on customizing The Events Calendar:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/customizing-template-files-2\/\">Customizing Template Files<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/calendar-template-files-v2\/\">The Events Calendar Template Files<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As part of integrating Category Colors into The Events Calendar, the original legend layout was removed. But don&#8217;t worry, you can still bring it back with some simple custom tweaks. Please follow the steps below to enable this layout: If your site has caching enabled, you should see the legacy Category Colors layout after clearing&#8230;<\/p>\n","protected":false},"author":60,"featured_media":1955565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[116,24,59,79],"tags":[271,23,25,58],"stellar-product-taxonomy":[161],"class_list":["post-1966215","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css-styling","category-customizing","category-customizing-resources","category-snippets","tag-category-colors","tag-css","tag-customizations","tag-php","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":116,"label":"CSS &amp; Styling"},{"value":24,"label":"Customizations"},{"value":59,"label":"PHP &amp; Functions"},{"value":79,"label":"Snippets"}],"post_tag":[{"value":271,"label":"Category Colors"},{"value":23,"label":"CSS"},{"value":25,"label":"Customizations"},{"value":58,"label":"PHP"}],"stellar-product-taxonomy":[{"value":161,"label":"The Events Calendar"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Atousa","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/atousa\/"},"comment_info":0,"category_info":[{"term_id":116,"name":"CSS &amp; Styling","slug":"css-styling","term_group":0,"term_taxonomy_id":116,"taxonomy":"category","description":"","parent":24,"count":33,"filter":"raw","term_order":"0","cat_ID":116,"category_count":33,"category_description":"","cat_name":"CSS &amp; Styling","category_nicename":"css-styling","category_parent":24},{"term_id":24,"name":"Customizations","slug":"customizing","term_group":0,"term_taxonomy_id":24,"taxonomy":"category","description":"","parent":0,"count":110,"filter":"raw","term_order":"0","cat_ID":24,"category_count":110,"category_description":"","cat_name":"Customizations","category_nicename":"customizing","category_parent":0},{"term_id":59,"name":"PHP &amp; Functions","slug":"customizing-resources","term_group":0,"term_taxonomy_id":59,"taxonomy":"category","description":"","parent":24,"count":101,"filter":"raw","term_order":"0","cat_ID":59,"category_count":101,"category_description":"","cat_name":"PHP &amp; Functions","category_nicename":"customizing-resources","category_parent":24},{"term_id":79,"name":"Snippets","slug":"snippets","term_group":0,"term_taxonomy_id":79,"taxonomy":"category","description":"","parent":0,"count":136,"filter":"raw","term_order":"0","cat_ID":79,"category_count":136,"category_description":"","cat_name":"Snippets","category_nicename":"snippets","category_parent":0}],"tag_info":[{"term_id":271,"name":"Category Colors","slug":"category-colors","term_group":0,"term_taxonomy_id":271,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw","term_order":"0"},{"term_id":23,"name":"CSS","slug":"css","term_group":0,"term_taxonomy_id":23,"taxonomy":"post_tag","description":"","parent":20,"count":48,"filter":"raw","term_order":"0"},{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":177,"filter":"raw","term_order":"0"},{"term_id":58,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":58,"taxonomy":"post_tag","description":"","parent":20,"count":128,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1966215"}],"version-history":[{"count":11,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966215\/revisions"}],"predecessor-version":[{"id":1966606,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966215\/revisions\/1966606"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1966215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1966215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1966215"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1966215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}