{"id":1962952,"date":"2024-09-24T03:04:00","date_gmt":"2024-09-24T07:04:00","guid":{"rendered":"https:\/\/theeventscalendar.com\/knowledgebase\/?p=1962952"},"modified":"2025-10-22T14:54:22","modified_gmt":"2025-10-22T18:54:22","slug":"how-to-display-event-category-description-on-archive-pages","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/how-to-display-event-category-description-on-archive-pages\/","title":{"rendered":"How to Display the Event Category Description on Archive Pages"},"content":{"rendered":"\n<p>Most themes disable category description by default. You can display event category description with a bit of customization.<\/p>\n\n\n\n<p>To achieve this, the following code should be added to your theme&#8217;s <code>functions.php<\/code>.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_action( \n&#039;tribe_template_before_include:events\/v2\/components\/events-bar&#039;, \nfunction ( $file, $name, $template ) { \n    if(is_tax(&quot;tribe_events_cat&quot;)){ \n    echo &quot;&lt;div class=&#039;events-category-des&#039;&gt;&quot;.category_description().&quot;&lt;\/div&gt;&quot;; \n    } \n}, 10, 3 );\n<\/pre><\/div>\n\n\n<p>Here is the complete guide for using&nbsp;custom <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/best-practices-for-implementing-custom-code-snippets\/\">code snippets<\/a>.<\/p>\n\n\n\n<p>Once you add the snippet, add some description to an event category, the result on the front-end would be like the following image:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1565\" height=\"655\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/09\/category-desc.jpeg\" alt=\"\" class=\"wp-image-1962978\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/09\/category-desc.jpeg 1565w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/09\/category-desc-300x126.jpeg 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/09\/category-desc-1024x429.jpeg 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/09\/category-desc-768x321.jpeg 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2024\/09\/category-desc-1536x643.jpeg 1536w\" sizes=\"auto, (max-width: 1565px) 100vw, 1565px\" \/><\/figure>\n\n\n\n<p>You can also assign some style like margin, font-size, font-color using the CSS below:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.events-category-des {\nfont-family: cursive;\nfont-size: 18px;\nmargin-bottom:30px;\n}\n<\/pre><\/div>\n\n\n<p>The CSS should be either added inside child theme&#8217;s style file or under <strong>Appearance &gt; Customize &gt; Additional CSS <\/strong>in WP dashboard.<\/p>\n\n\n\n<p>This snippet works with List, Summary, Map, Photo, Day, and Week views. Due to the way Month View layout is handled, the snippet should to be extended to work with Month View as well, which requires further <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/customizing-template-files-2\/\">customization<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most themes disable category description by default. You can display event category description with a bit of customization. To achieve this, the following code should be added to your theme&#8217;s functions.php. Here is the complete guide for using&nbsp;custom code snippets. Once you add the snippet, add some description to an event category, the result on&#8230;<\/p>\n","protected":false},"author":27,"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":[24,59],"tags":[],"stellar-product-taxonomy":[],"class_list":["post-1962952","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customizing","category-php-function-snippets"],"acf":[],"taxonomy_info":{"category":[{"value":24,"label":"Customizations"},{"value":59,"label":"PHP Functions &amp; Snippets"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Abz","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/abz\/"},"comment_info":0,"category_info":[{"term_id":24,"name":"Customizations","slug":"customizing","term_group":0,"term_taxonomy_id":24,"taxonomy":"category","description":"","parent":0,"count":157,"filter":"raw","term_order":"0","cat_ID":24,"category_count":157,"category_description":"","cat_name":"Customizations","category_nicename":"customizing","category_parent":0},{"term_id":59,"name":"PHP Functions &amp; Snippets","slug":"php-function-snippets","term_group":0,"term_taxonomy_id":59,"taxonomy":"category","description":"","parent":24,"count":127,"filter":"raw","term_order":"0","cat_ID":59,"category_count":127,"category_description":"","cat_name":"PHP Functions &amp; Snippets","category_nicename":"php-function-snippets","category_parent":24}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1962952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1962952"}],"version-history":[{"count":8,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1962952\/revisions"}],"predecessor-version":[{"id":1964414,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1962952\/revisions\/1964414"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1962952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1962952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1962952"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1962952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}