{"id":1896480,"date":"2019-10-18T13:19:13","date_gmt":"2019-10-18T17:19:13","guid":{"rendered":"https:\/\/theeventscalendar.com\/knowledgebase\/calendar-page-shows-event-title-2\/"},"modified":"2026-04-22T01:39:51","modified_gmt":"2026-04-22T05:39:51","slug":"troubleshoot-calendar-views","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/troubleshoot-calendar-views\/","title":{"rendered":"Troubleshooting The Events Calendar Views"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-calendar-page-shows-the-event-title\">Calendar Page Shows the Event Title<\/h2>\n\n\n\n<p>If the page title has taken on the title of the first event, there are a few&nbsp;things you can do to fix it. Please note that the solutions below assume you have a high level of experience tinkering with WordPress code.<\/p>\n\n\n\n<p>First, try modifying the constant <em>TRIBE_MODIFY_GLOBAL_TITLE<\/em> as outlined in <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/configuring-the-events-calendar-with-constants\/\">this guide<\/a>.<\/p>\n\n\n\n<p>If that first step did not work,&nbsp;find out what you are using for your Events Template in Events &gt; Settings &gt; Template. Make note of the setting here. If you\u2019ve got the &#8220;Default Events Template&#8221; option selected, then add the following code to your themes functions.php file and modify as needed to set the titles you want:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter(&#039;tribe_get_events_title&#039;, &#039;my_get_events_title&#039;);\nfunction my_get_events_title($title) {\nif( tribe_is_month() &amp;&amp; !is_tax() ) { \/\/ The Main Calendar Page\n  return &#039;Events Calendar&#039;;\n} elseif( tribe_is_month() &amp;&amp; is_tax() ) { \/\/ Calendar Category Pages\n  return &#039;Events Calendar&#039; . &#039; \u00bb &#039; . single_term_title(&#039;&#039;, false);\n} elseif( tribe_is_event() &amp;&amp; !tribe_is_day() &amp;&amp; !is_single() ) { \/\/ The Main Events List\n  return &#039;Events List&#039;;\n} elseif( tribe_is_event() &amp;&amp; is_single() ) { \/\/ Single Events\n  return get_the_title();\n} elseif( tribe_is_day() ) { \/\/ Single Event Days\n  return &#039;Events on: &#039; . date(&#039;F j, Y&#039;, strtotime($wp_query-&gt;query_vars&#x5B;&#039;eventDate&#039;]));\n} elseif( tribe_is_venue() ) { \/\/ Single Venues\n  return $title;\n} else {\n  return $title;\n}\n}\n<\/pre><\/div>\n\n\n<p>If you\u2019ve got the Default Page Template selected, then first try opening up your theme&#8217;s page.php file and look for where <code>the_title()<\/code> is executed. If you don&#8217;t see <code>the_title()<\/code> in <code>page.php<\/code>, try looking in header.php. It helps to do a find in the file instead of scanning it but I&#8217;ll leave that up to you.<\/p>\n\n\n\n<p>If you don&#8217;t find <code>the_title()<\/code> in either of those files then it&#8217;s either in another template or added dynamically some other way in your theme and you&#8217;ll need to track it down. Try looking in your theme&#8217;s documentation and look up where <code>the_title()<\/code> is executed. You may need to contact the theme author.<\/p>\n\n\n\n<p>As an example, in your theme you might find:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php the_title(); ?&gt;\n<\/pre><\/div>\n\n\n<p>or:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php echo get_the_title(); ?&gt;\n<\/pre><\/div>\n\n\n<p>Once you\u2019ve found where <code>the_title()<\/code> is executed, you\u2019ll want to use <a href=\"https:\/\/gist.github.com\/theeventscalendar\/8b88307bb2c082d6cdba\">these conditional wrappers<\/a>&nbsp;to help you conditionally set the title for any of the event-related pages. You\u2019ll need&nbsp;to hard code the title for the Month View&nbsp;page similar to the following:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nif( tribe_is_month() &amp;&amp; !is_tax() ) { \/\/ The Main Calendar Page\n  echo &#039;Events Calendar&#039;;\n} elseif( tribe_is_month() &amp;&amp; is_tax() ) { \/\/ Calendar Category Pages\n  echo &#039;Events Calendar&#039; . &#039; \u00bb &#039; . single_term_title(&#039;&#039;, false);\n} elseif( tribe_is_event() &amp;&amp; !tribe_is_day() &amp;&amp; !is_single() ) { \/\/ The Main Events List\n  echo &#039;Events List&#039;;\n} elseif( tribe_is_event() &amp;&amp; is_single() ) { \/\/ Single Events\n  echo get_the_title();\n} elseif( tribe_is_day() ) { \/\/ Single Event Days\n  echo &#039;Events on: &#039; . date(&#039;F j, Y&#039;, strtotime($wp_query-&gt;query_vars&#x5B;&#039;eventDate&#039;]));\n} elseif( tribe_is_venue() ) { \/\/ Single Venues\n  echo get_the_title();\n} else {\n  echo get_the_title();\n}\n<\/pre><\/div>\n\n\n<p>Pay attention to any specific code your theme may be using for the title too because you may want to wrap items in HTML and the like. Here is another example from a specific theme where the_title() would be wrapped in HTML markup:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;div id=&quot;pageHead&quot;&gt;\n  &lt;?php if( tribe_is_month() &amp;&amp; !is_tax() ) { \/\/ The Main Calendar Page ?&gt;\n    &lt;h1 class=&quot;home&quot;&gt;The Main Calendar&lt;\/h1&gt;\n  &lt;?php } elseif( tribe_is_month() &amp;&amp; is_tax() ) { \/\/ Calendar Category Pages ?&gt;\n    &lt;h1 class=&quot;home&quot;&gt;Calendar Category: &lt;?php echo tribe_meta_event_category_name(); ?&gt;&lt;\/h1&gt;\n  &lt;?php } elseif( tribe_is_event() &amp;&amp; !tribe_is_day() &amp;&amp; !is_single() &amp;&amp; !is_tax() ) { \/\/ The Main Events List ?&gt;\n    &lt;h1 class=&quot;home&quot;&gt;Events List&lt;\/h1&gt;\n  &lt;?php } elseif( tribe_is_event() &amp;&amp; !tribe_is_day() &amp;&amp; !is_single() &amp;&amp; is_tax() ) { \/\/ Category Events List ?&gt;\n    &lt;h1 class=&quot;home&quot;&gt;Events List: &lt;?php echo tribe_meta_event_category_name(); ?&gt;&lt;\/h1&gt;\n  &lt;?php } elseif( tribe_is_event() &amp;&amp; is_single() ) { \/\/ Single Events ?&gt;\n    &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;\/h1&gt;\n  &lt;?php } elseif( tribe_is_day() ) { \/\/ Single Event Days ?&gt;\n    &lt;h1&gt;&lt;?php $title = &#039;Events on: &#039; . date(&#039;F j, Y&#039;, strtotime(get_query_var( &#039;eventDate&#039; ))); ?&gt;&lt;\/h1&gt;\n  &lt;?php } elseif( tribe_is_venue() ) { \/\/ Single Venues ?&gt;\n    &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;\/h1&gt;\n  &lt;?php } else { ?&gt;\n    &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;\/h1&gt;\n  &lt;?php } ?&gt;\n \n  &lt;?php $page_description = get_post_meta($post-&gt;ID, &quot;_ttrust_page_description_value&quot;, true); ?&gt;\n    &lt;?php if ($page_description) : ?&gt;\n      &lt;p&gt;&lt;?php echo $page_description; ?&gt;&lt;\/p&gt;\n    &lt;?php endif; ?&gt;\n&lt;\/div&gt;&lt;!--end pageHead --&gt;\n<\/pre><\/div>\n\n\n<p>If you have any questions about this, please open up a topic at&nbsp;<a href=\"https:\/\/support.theeventscalendar.com\/submit_ticket\">our Help Desk<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-the-mini-calendar-displays-instead-of-the-full-month-view\">The Mini Calendar Displays Instead of the Full Month View <\/h2>\n\n\n\n<p>Under certain circumstances, when viewing your events pages in the default Month View on standard-sized displays, you may notice that your calendar is rendered at a smaller size, with dots replacing the usual event titles on dates that contain events.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/knowledgebase\/wp-content\/uploads\/2019\/10\/widget-calendar.png\" alt=\"\" class=\"wp-image-1944742\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To better understanding why this problem occurs and how to prevent it, it&#8217;s helpful to understand how the visual styling for The Events Calendar is constructed in code. Let&#8217;s take a closer look.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"responsive\">Responsive Design<\/h4>\n\n\n\n<p>The Events Calendar is built from the ground up with responsive design in mind, which means that its visual styling adapts to different screen sizes. On large screens, the calendar&#8217;s Month View is a full grid that displays the event titles that we&#8217;d expect to see on a large calendar. When viewed on smaller screens, the calendar will automatically respond by switching to a smaller, more compact version. Instead of displaying all events, the calendar displays dots indicating days that contain events.<\/p>\n\n\n\n<p>The calendar automatically switches from the large screen layout to the small screen layout if the space allotted for the calendar is less than 768 pixels wide. We call this the calendar&#8217;s <em>responsive breakpoint<\/em>.<\/p>\n\n\n\n<p>However, space allotted for calendars refers not to the size of your device or browser window but to the <em>container<\/em> holding the calendar. If the calendar is sitting in a container that is less than 768 pixels in width, the calendar <em>will<\/em> respond to the appropriate breakpoint.<\/p>\n\n\n\n<p>Where we see this most often is when a sidebar is included on the same page as the calendar. The space the sidebar takes up subtracts from the calendar&#8217;s 768 pixels of available space before the breakpoint strikes. The result is that the small screen version of the calendar is displayed where the large screen version might be expected.<\/p>\n\n\n\n<p>Thankfully, there is a handy way around this problem. We can use the following snippet in our theme&#8217;s <code>functions.php<\/code> file to change the width at which the responsive breakpoint is activated.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><pre class=\"brush: php; title: ; notranslate\" title=\"\">function customize_tribe_events_breakpoint() {\n  return 600;\n}\nadd_filter( &amp;#039;tribe_events_mobile_breakpoint&amp;#039;, &amp;#039;customize_tribe_events_breakpoint&amp;#039; );<\/pre><\/pre>\n\n\n\n<p>In this example, we&#8217;re telling the calendar to hold off from changing to small screen mode until the container is less than 600 pixels in width. That&#8217;s 168 more pixels of space to play with than we had before. If you&#8217;d prefer to use a different breakpoint, simply change the &#8220;600&#8221; in code to another value of your choice.<\/p>\n\n\n\n<p>But let&#8217;s say that we want to kill the small screen mode completely. We can do that using this snippet instead:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'tribe_events_kill_responsive', '__return_true');\n<\/pre><\/div>\n\n\n<p>Other methods for allotting more space to your calendars might include removing sidebars or adjusting their behavior to move above or below your calendar views on smaller displays. It&#8217;s worth exploring different options to see which one works best for you and your users.<\/p>\n\n\n\n<p>Still encountering mobile styling on your calendars that isn&#8217;t resolved by the above suggestions? Read on!<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"concatenation\">Concatenation Issues<\/h4>\n\n\n\n<p>Problems with mobile styling being applied incorrectly may also be caused by a behavior known as <strong>concatenation<\/strong>, which is automatically performed by some WordPress caching and optimization plugins. Plugins that perform concatenation will often combine all CSS files requested by your WordPress theme and active plugins into a single file in an effort to improve page load times. The Events Calendar uses a separate CSS file for its mobile styling which is triggered only at specific display sizes, but concatenation plugins are able to bypass this logic, causing the more specific mobile styling to override your default calendar styling at all screen sizes.<\/p>\n\n\n\n<p>If you&#8217;re experiencing this issue on your calendar or events pages, you can determine whether your caching plugin is at fault by temporarily deactivating the plugin from your WordPress site&#8217;s backend. Log in to your WordPress site, then click <strong>Plugins<\/strong> in the sidebar to bring up the list of installed plugins for your site. Click the <strong>Deactivate<\/strong> link below your caching plugin&#8217;s title to deactivate the plugin and disable its behaviors.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2017\/07\/caching_plugin_deactivate.png\" alt=\"Deactivate link for caching plugin\"\/><\/figure>\n\n\n\n<p>After clearing your browser&#8217;s cache, try reloading your main calendar page to see if the problem persists. If your calendar displays with its standard styling in place once your caching plugin is disabled, you&#8217;ll know that concatenation (or a similar compression method) is to blame.<\/p>\n\n\n\n<p>The good news is that you can still make use of many of the optimization features of these caching plugins without negatively impacting your calendars or events&#8211;it&#8217;s just a matter of applying these features <em>selectively<\/em> where possible. Our plugins are already developed with speed and efficiency in mind and employ a number of performance-oriented considerations, such as code minification, straight out of the box. (You can read more about performance as it relates to our plugins over on <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/problems-with-minification\/\">our minification article<\/a>.) If your caching plugin allows for the enabling and disabling of features individually, simply disabling <strong>concatenation<\/strong> and <strong>minification<\/strong> should allow you to benefit from the speed improvements that caching offers without compromising the functionality of your plugins. <a href=\"https:\/\/tangerinemoons.com\/using-wordpress-w3-total-cache-modern-tribes-event-calendar\/\" target=\"_blank\" rel=\"noreferrer noopener\">This article<\/a> provided by <a href=\"https:\/\/tangerinemoons.com\" target=\"_blank\" rel=\"noreferrer noopener\">Tangerine Moons<\/a> offers some further suggestions specifically related to the use of <a href=\"https:\/\/wordpress.org\/plugins\/w3-total-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">W3 Total Cache<\/a> with The Events Calendar.<\/p>\n\n\n\n<p>With these tips in mind, you should be well-equipped to continue working with our plugins alongside your preferred caching solution without affecting the look, feel, or functionality of your calendars. If you should continue to experience any issues with your calendar or if you should have any other questions, please don&#8217;t hesitate to reach out to us over at\u00a0<a href=\"https:\/\/support.theeventscalendar.com\/submit_ticket\">our support Help Desk<\/a> for further assistance!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-issues-with-the-view-switcher-or-navigation\">Issues with the View Switcher or Navigation<\/h2>\n\n\n\n<p>When using The Events Calendar plugins, you may encounter an issue where the calendar view doesn&#8217;t change or you can&#8217;t paginate past the current month.<\/p>\n\n\n\n<p>If you do see one of these issues occur, there may be a simple fix.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-testing-for-conflicts\">Testing for Conflicts<\/h4>\n\n\n\n<p>The simple answer is that there may be a conflict occurring with another plugin that is causing this issue. Often, this happens with security plugins, like Wordfence, or with a firewall like Modsec Firewall.<\/p>\n\n\n\n<p>The reason why this may occur is that security plugins tend to block the REST API. To see if this is what is causing the issue, go ahead and disable all security plugins and firewalls. You may need help from your hosting provider when it comes to any firewalls installed.<\/p>\n\n\n\n<p>Read more about testing for conflicts in our <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/testing-for-conflicts\/\" target=\"_blank\" rel=\"noreferrer noopener\">Knowledgebase article<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Google Chrome Developer Tools<\/h4>\n\n\n\n<p>Another first step you can take when resolving this error is to utilize Google Chrome Developer Tools. You can usually find some good clues to help you see what is causing the issue there. To learn more about using Google Chrome Developer Tools, check out this <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/using-google-chrome-developer-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">Knowledgebase article<\/a>.<\/p>\n\n\n\n<p>The same applies to other browsers, like <a href=\"https:\/\/firefox-source-docs.mozilla.org\/devtools-user\/page_inspector\/\" target=\"_blank\" rel=\"noreferrer noopener\">Firefox<\/a> and Safari, where you can look for errors in the console using their inspection tools.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Calendar Page Shows the Event Title If the page title has taken on the title of the first event, there are a few&nbsp;things you can do to fix it. Please note that the solutions below assume you have a high level of experience tinkering with WordPress code. First, try modifying the constant TRIBE_MODIFY_GLOBAL_TITLE as outlined&#8230;<\/p>\n","protected":false},"author":84,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","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":[93],"tags":[58],"stellar-product-taxonomy":[161],"class_list":["post-1896480","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-errors","tag-php","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":93,"label":"Troubleshooting"}],"post_tag":[{"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":"The Events Calendar Team","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/the_events_calendar_team\/"},"comment_info":0,"category_info":[{"term_id":93,"name":"Troubleshooting","slug":"errors","term_group":0,"term_taxonomy_id":93,"taxonomy":"category","description":"","parent":0,"count":47,"filter":"raw","term_order":"0","cat_ID":93,"category_count":47,"category_description":"","cat_name":"Troubleshooting","category_nicename":"errors","category_parent":0}],"tag_info":[{"term_id":58,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":58,"taxonomy":"post_tag","description":"","parent":20,"count":22,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896480","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\/84"}],"replies":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1896480"}],"version-history":[{"count":4,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896480\/revisions"}],"predecessor-version":[{"id":1969196,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896480\/revisions\/1969196"}],"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=1896480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896480"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}