{"id":1471862,"date":"2018-03-07T00:44:06","date_gmt":"2018-03-07T08:44:06","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/"},"modified":"2018-03-07T00:44:06","modified_gmt":"2018-03-07T08:44:06","slug":"why-not-show-calendar-title-in-archive-php","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/","title":{"rendered":"Why not show calendar title in archive.php"},"content":{"rendered":"<p>i will add this code to functions.php<br \/>\n<code>define('TRIBE_MODIFY_GLOBAL_TITLE', true);<br \/>\nadd_filter('tribe_get_events_title', 'my_get_events_title');<br \/>\nfunction my_get_events_title($title) {<br \/>\nif( tribe_is_month() &amp;&amp; !is_tax() ) { \/\/ The Main Calendar Page<br \/>\n    return 'Academic Calendar';<br \/>\n} elseif( tribe_is_month() &amp;&amp; is_tax() ) { \/\/ Calendar Category Pages<br \/>\n    return 'Academic Calendar' . ' \u00bb ' . single_term_title('', false);<br \/>\n} elseif( tribe_is_event() &amp;&amp; !tribe_is_day() &amp;&amp; !is_single() ) { \/\/ The Main Events List<br \/>\n    return 'Events List';<br \/>\n} elseif( tribe_is_event() &amp;&amp; is_single() ) { \/\/ Single Events<br \/>\n    return get_the_title();<br \/>\n} elseif( tribe_is_day() ) { \/\/ Single Event Days<br \/>\n    return 'Event On: ' . date('F j, Y', strtotime($wp_query-&gt;query_vars['eventDate']));<br \/>\n} elseif( tribe_is_venue() ) { \/\/ Single Venues<br \/>\n    return $title;<br \/>\n} else {<br \/>\n    return $title;<br \/>\n}<br \/>\n}<\/code><\/p>\n<p>and archive.php call function the_archive_title in picture<br \/>\n<img decoding=\"async\" src=\"https:\/\/preview.ibb.co\/m4mSTS\/ss.jpg\" alt=\"archive.php\" \/><\/p>\n<p>it&#8217;s not show everything<br \/>\n<img decoding=\"async\" src=\"https:\/\/preview.ibb.co\/jtNO2n\/ss3.jpg\" alt=\"result\" \/><\/p>\n","protected":false},"template":"","class_list":["post-1471862","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Why not show calendar title in archive.php -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Why not show calendar title in archive.php -\" \/>\n<meta property=\"og:description\" content=\"i will add this code to functions.php define(&#039;TRIBE_MODIFY_GLOBAL_TITLE&#039;, true); add_filter(&#039;tribe_get_events_title&#039;, &#039;my_get_events_title&#039;); function my_get_events_title($title) { if( tribe_is_month() &amp;&amp; !is_tax() ) { \/\/ The Main Calendar Page return &#039;Academic Calendar&#039;; } elseif( tribe_is_month() &amp;&amp; is_tax() ) { \/\/ Calendar Category Pages return &#039;Academic Calendar&#039; . &#039; \u00bb &#039; . single_term_title(&#039;&#039;, false); } elseif( tribe_is_event() &amp;&amp; !tribe_is_day() &amp;&amp; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/preview.ibb.co\/m4mSTS\/ss.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/\",\"name\":\"Why not show calendar title in archive.php -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/preview.ibb.co\/m4mSTS\/ss.jpg\",\"datePublished\":\"2018-03-07T08:44:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#primaryimage\",\"url\":\"https:\/\/preview.ibb.co\/m4mSTS\/ss.jpg\",\"contentUrl\":\"https:\/\/preview.ibb.co\/m4mSTS\/ss.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Why not show calendar title in archive.php\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Why not show calendar title in archive.php -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/","og_locale":"en_US","og_type":"article","og_title":"Why not show calendar title in archive.php -","og_description":"i will add this code to functions.php define('TRIBE_MODIFY_GLOBAL_TITLE', true); add_filter('tribe_get_events_title', 'my_get_events_title'); function my_get_events_title($title) { if( tribe_is_month() &amp;&amp; !is_tax() ) { \/\/ The Main Calendar Page return 'Academic Calendar'; } elseif( tribe_is_month() &amp;&amp; is_tax() ) { \/\/ Calendar Category Pages return 'Academic Calendar' . ' \u00bb ' . single_term_title('', false); } elseif( tribe_is_event() &amp;&amp; !tribe_is_day() &amp;&amp; [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/","og_image":[{"url":"https:\/\/preview.ibb.co\/m4mSTS\/ss.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/","name":"Why not show calendar title in archive.php -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#primaryimage"},"image":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#primaryimage"},"thumbnailUrl":"https:\/\/preview.ibb.co\/m4mSTS\/ss.jpg","datePublished":"2018-03-07T08:44:06+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#primaryimage","url":"https:\/\/preview.ibb.co\/m4mSTS\/ss.jpg","contentUrl":"https:\/\/preview.ibb.co\/m4mSTS\/ss.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/why-not-show-calendar-title-in-archive-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"Why not show calendar title in archive.php"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1471862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1471862\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1471862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}