{"id":1896499,"date":"2019-10-18T13:19:16","date_gmt":"2019-10-18T17:19:16","guid":{"rendered":"https:\/\/theeventscalendar.com\/knowledgebase\/show-all-events-on-month-view-grid-days\/"},"modified":"2026-04-23T13:53:22","modified_gmt":"2026-04-23T17:53:22","slug":"customize-month-view","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/customize-month-view\/","title":{"rendered":"Customizing Month View"},"content":{"rendered":"\n<p>Month View lays out your events on a traditional calendar grid. You may want to tailor how that grid looks and behaves \u2014 from what appears inside each day to how event tooltips are presented. This article collects a range of common Month View customizations.<\/p>\n\n\n\n<p>Customizations for The Events Calendar are usually implemented via code snippets or template overrides. Add snippets to your child theme&#8217;s <code>functions.php<\/code> file or use the Code Snippets plugin. Template overrides should go in a child theme. If either approach is new to you, start with <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/best-practices-for-implementing-custom-code-snippets\/\">Using Code Snippets to Customize The Events Calendar<\/a> and <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/customizing-template-files\/\">Customizing The Events Calendar Templates<\/a> for a walkthrough of each.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-show-all-events-for-a-day-in-month-view\">Show All Events For a Day in Month View<\/h2>\n\n\n\n<p class=\"p1\">Sometimes you don&#8217;t want users to have to click a &#8220;View All&#8221; link in Month View to see all the events scheduled that day, but would rather have all the events presented outright. This is totally doable and requires a two-pronged approach: first, by adding a snippet to your functions.php file; and second, by eliminating the &#8220;View More&#8221; link from the calendar itself. <!-- month view, grid view --><\/p>\n\n\n\n<p>For the snippet, simply add the code below to your theme&#8217;s functions.php file. The snippet sets the <code>pages_per_post<\/code> to <code>-1<\/code>, which WordPress takes as meaning enforce no limit.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter( 'tribe_events_month_day_limit', 'tribe_remove_calendar_day_limit' );\n\nfunction tribe_remove_calendar_day_limit() { \n    return -1;\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-show-full-day-of-the-week-name\">Show Full Day of the Week Name<\/h2>\n\n\n\n<p>Instead of Mon, Tues, etc., you can have the Month View show the days of the week as the full day names (e.g. Monday, Tuesday, etc.). Here&#8217;s an example:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/06\/Screen-Shot-2022-06-08-at-14.09.10-1024x157.png\" alt=\"\" class=\"wp-image-1953134\"\/><\/figure><\/div>\n\n\n<p>Perform a template override, by making a copy of &#8216;\/wp-content\/plugins\/the-events-calendar\/src\/views\/v2\/month\/calendar-header.php&#8217; and place in the &#8216;\/tribe\/events\/v2\/month\/&#8217; folder in your theme.<\/p>\n\n\n\n<p>Look for the following line:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php echo esc_html( $wp_locale-&gt;get_weekday_abbrev( $day ) ); ?&gt;\n<\/pre><\/div>\n\n\n<p><br>Then replace that with this new code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php echo esc_html( $day ); ?&gt;\n<\/pre><\/div>\n\n\n<p><br>The template grabs the short form of the weekday via WordPress&#8217;s locale helpers, then uses that in the table header. Instead, we use the full day name.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-change-the-date-format\">Change the Date Format<\/h2>\n\n\n\n<p>To change the date format to the month name, you can simply use the settings included with <a href=\"https:\/\/theeventscalendar.com\/products\/wordpress-events-calendar\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Events Calendar<\/a>. To do this, head over to <strong>Events &gt; Settings &gt; Display<\/strong> <strong>&gt; Date &amp; Time<\/strong> and change the <strong>Month and Year format<\/strong> to F (instead of FY).<\/p>\n\n\n\n<p>If instead, you&#8217;d prefer to change the date format with some code, you can add the following snippet to your theme&#8217;s functions.php file to achieve the same effect. Note that this snippet is specific to Month View, due to the <code>formatted_grid_date<\/code> section:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_filter(\n    &#039;tribe_events_views_v2_view_template_vars&#039;,\n    function( $template_vars, $view ) {\n\t\t\n\t\t\/\/ Month view only\n        if ( isset( $template_vars&#x5B;&#039;formatted_grid_date_mobile&#039;] ) ) {\n            $date = \\Tribe__Date_Utils::build_date_object( $template_vars&#x5B;&#039;the_date&#039;] );\n            $template_vars&#x5B;&#039;formatted_grid_date_mobile&#039;] = $date-&gt;format( &#039;F&#039; );\n        }\n\t\t\n\t\treturn $template_vars;\n    },\n\t10,\n\t2\n);\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-show-featured-images\">Show Featured Images<\/h2>\n\n\n\n<p>By default, The Events Calendar\u2019s month view does not display featured images for events. If you\u2019d like to add event thumbnails directly in the calendar grid, you can do this with a small template override and some optional CSS styling.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-step-1-copy-the-template-file\">Step 1: Copy the Template File<\/h4>\n\n\n\n<p>First, copy the original template from the plugin folder:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nwp-content\/plugins\/the-events-calendar\/src\/views\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event.php\n\n<\/pre><\/div>\n\n\n<p>Paste it into your theme (or child theme) at this location:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;your-theme]\/tribe\/events\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event.php\n<\/pre><\/div>\n\n\n<p class=\"has-theme-palette-8-background-color has-background\">Tip: Always use a child theme when making customizations so updates don\u2019t overwrite your changes.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-step-2-add-the-thumbnail-code\">Step 2: Add the Thumbnail Code<\/h4>\n\n\n\n<p>Open the file you just copied. Around line 26, add the following snippet where you\u2019d like the thumbnail to appear:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php if( isset ($event-&gt;thumbnail )): ?&gt;\n\t&lt;img\n\t\tclass=&quot;tribe-events-calendar-list__event-featured-image&quot;\n\t\tsrc=&quot;&lt;?php echo esc_url( $event-&gt;thumbnail-&gt;full-&gt;url ); ?&gt;&quot;\n\t\t&lt;?php if ( ! empty( $event-&gt;thumbnail-&gt;srcset ) ) : ?&gt;\n\t\t\tsrcset=&quot;&lt;?php echo esc_attr( $event-&gt;thumbnail-&gt;srcset ); ?&gt;&quot;\n\t\t&lt;?php endif; ?&gt;\n\t\t&lt;?php if ( ! empty( $event-&gt;thumbnail-&gt;alt ) ) : ?&gt;\n\t\t\talt=&quot;&lt;?php echo esc_attr( $event-&gt;thumbnail-&gt;alt ); ?&gt;&quot;\n\t\t&lt;?php else : ?&gt;\n\t\t\talt=&quot;&quot;\n\t\t&lt;?php endif; ?&gt;\n\t\t&lt;?php if ( ! empty( $event-&gt;thumbnail-&gt;title ) ) : ?&gt;\n\t\t\ttitle=&quot;&lt;?php echo esc_attr( $event-&gt;thumbnail-&gt;title ); ?&gt;&quot;\n\t\t&lt;?php endif; ?&gt;\n\t\t&lt;?php if ( ! empty( $event-&gt;thumbnail-&gt;full-&gt;width ) &amp;&amp; ! empty( $event-&gt;thumbnail-&gt;full-&gt;height ) ) : ?&gt;\n\t\t\twidth=&quot;&lt;?php echo esc_attr( $event-&gt;thumbnail-&gt;full-&gt;width ); ?&gt;&quot;\n\t\t\theight=&quot;&lt;?php echo esc_attr( $event-&gt;thumbnail-&gt;full-&gt;height ); ?&gt;&quot;\n\t\t&lt;?php endif; ?&gt;\n\t\/&gt;\n&lt;?php endif; ?&gt;\n\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"653\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/09\/CE-Code-1024x653.png\" alt=\"\" class=\"wp-image-1967021\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/09\/CE-Code-1024x653.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/09\/CE-Code-300x191.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/09\/CE-Code-768x490.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/09\/CE-Code.png 1293w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once added, your month view will display featured images for each event.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-step-3-handling-multiple-events-in-the-same-day\">Step 3: Handling Multiple Events in the Same Day<\/h4>\n\n\n\n<p>When two or more events with photos fall on the same day, the month view expands to show them stacked vertically. If you\u2019d like to keep things neat and prevent clutter, you can resize the images with some custom CSS.<\/p>\n\n\n\n<p>Add this under <strong>Appearance \u2192 Customize \u2192 Additional CSS<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.tribe-events-calendar-month__events article img {\n  height: 5rem;\n  object-fit: cover;\n  object-position: center;\n}\n\n<\/pre><\/div>\n\n\n<p>Save, clear your browser cache, and check the calendar again.<\/p>\n\n\n\n<p>With a quick template override and optional CSS, you can enhance your calendar\u2019s month view by showing event photos. This helps events stand out visually while keeping the layout clean and easy to scan.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-link-featured-image-to-event-page\">Link Featured Image to Event Page<\/h2>\n\n\n\n<p><strong>Accessibility Note: <\/strong>When both the event image and the title link to the same page, it creates what&#8217;s known as redundant links, which can confuse assistive technologies. According to accessibility standards like WCAG 2.1 (specifically criteria 2.4.4 and 1.1.1), redundant or ambiguous links can make it harder for users with visual or cognitive impairments to understand and navigate your content effectively.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">add_filter(<br>'tribe_template_html:events\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/tooltip\/featured-image',<br>function ( $html, $file, $name, $template ) {<br><br>    $event = $template-&gt;get( 'event' );<br><br>    \/\/ Build anchor output<br>    $anchor_open = sprintf(<br>        '&lt;a href=\"%s\" title=\"%s\" rel=\"bookmark\" class=\"tribe-events-calendar-month__calendar-event-tooltip-featured-image-link\" tabindex=\"-1\" aria-hidden=\"true\"&gt;',<br>        esc_url( $event-&gt;permalink ),<br>        esc_attr( $event-&gt;title )<br>    );<br><br>    \/\/ Wrap img with anchor<br>    $html = preg_replace(<br>        '\/(&lt;img[^&gt;]*&gt;)\/',<br>        $anchor_open . '$1&lt;\/a&gt;',<br>        $html<br>    );<br><br>    return $html;<br>}, 10, 4 );<br><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-rounded-shapes-for-all-events\">Rounded Shapes for All Events<\/h2>\n\n\n\n<p>When displaying your calendar in Month View, you may want to customize it to better align with your site\u2019s design and colors. <strong><a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/the-events-calendar-category-colors\/\">The Category Color<\/a> <\/strong>feature lets you color events by category, but it doesn\u2019t change their shape, which means some event types may not fully match this style.<\/p>\n\n\n\n<p>By default, <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/multi-day-events\/\">multi-day <\/a>and all-day events appear in a pill-shaped format with a neutral shade. This visually separates them from regular events.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"348\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/Multi-day-events-neutral.png\" alt=\"\" class=\"wp-image-1967481\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/Multi-day-events-neutral.png 1010w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/Multi-day-events-neutral-300x103.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/Multi-day-events-neutral-768x265.png 768w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><\/figure>\n\n\n\n<p>If you want a more consistent look across all event types, you can achieve it with a bit of CSS. Just place the desired snippet in <em><strong>Dashboard &gt; Appearance &gt; Customize &gt; Additional CSS<\/strong><\/em>.<\/p>\n\n\n\n<p>As mentioned earlier, multi-day and all-day events appear in a pill-shaped format. Regular events, on the other hand, have no special styling. When you apply a Category Color, it only changes the background, leaving the event displayed as a block. Based on your preference, corners can be styled as rounded or sharp to create a unified look.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1147\" height=\"335\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/Colors.png\" alt=\"\" class=\"wp-image-1967486\" style=\"width:1023px;height:auto\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/Colors.png 1147w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/Colors-300x88.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/Colors-1024x299.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/Colors-768x224.png 768w\" sizes=\"auto, (max-width: 1147px) 100vw, 1147px\" \/><\/figure>\n\n\n\n<p>To change all corners to be <strong>rounded<\/strong>, please use the CSS below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.tribe-events .tribe-events-calendar-month__calendar-event-details {\n    background-color: var(--tec-color-category-secondary);\n    border-radius: 8px;\n    padding: 4px 6px;\n    color: var(--tec-color-category-text);\n    overflow: hidden;\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"382\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/rounded-1.png\" alt=\"\" class=\"wp-image-1967506\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/rounded-1.png 892w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/rounded-1-300x128.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/rounded-1-768x329.png 768w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<p>To change all corners to be <strong>sharp<\/strong>, you can use this CSS.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.tribe-events-calendar-month__multiday-event-bar,\n.tribe-events-calendar-month__multiday-event-bar:before {\n    border-radius: 0 !important;\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"893\" height=\"381\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/sharp-edges.png\" alt=\"\" class=\"wp-image-1967503\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/sharp-edges.png 893w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/sharp-edges-300x128.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/10\/sharp-edges-768x328.png 768w\" sizes=\"auto, (max-width: 893px) 100vw, 893px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-display-additional-fields-in-the-tooltip\">Display Additional Fields in the Tooltip<\/h2>\n\n\n\n<p>We have a feature in Events Calendar Pro called <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/pro-additional-fields\/\" target=\"_blank\" rel=\"noreferrer noopener\">additional fields<\/a>, which allows customers to include fields into their Events to allow more information to be added to the Events.<\/p>\n\n\n\n<p>Our goal here is to create three custom fields using Events Calendar Pro, and make extra templates that display those fields after the event description in the tooltip for month view.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2020\/02\/month-view-tooltip.png\" alt=\"Month View tooltip\" class=\"wp-image-1945495\"\/><figcaption class=\"wp-element-caption\">Month view tooltip<\/figcaption><\/figure>\n\n\n\n<p>Following the same pattern we used in <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/how-to-include-a-new-template-in-a-view\/\" target=\"_blank\" rel=\"noreferrer noopener\">&#8220;How to Include a New Template in a View&#8221;<\/a> you will create a new file in your child theme at this location:<code>[your-theme]\/tribe\/events\/v2\/month\/tooltip-extra-fields.php:<\/code>&nbsp;<br><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\/\/ Get the event ID.\n$event_id = get_the_ID();\n\n\/\/ Fetch from this Event all custom fields and their values.\n$fields = tribe_get_custom_fields( $event_id );\n?&gt;\n\n&lt;div class=&quot;theme-extra-event-fields&quot;&gt;\n&lt;?php if ( ! empty( $fields&#x5B;&#039;Artist&#039;] ) ) : ?&gt;\n  &lt;h4&gt;Artist&lt;\/h4&gt;\n  &lt;p&gt;\n    &lt;?php if ( ! empty( $fields&#x5B;&#039;Artist Instagram&#039;] ) ) : ?&gt;\n    &lt;a href=&quot;&lt;?php echo esc_url( $fields&#x5B;&#039;Artist Instagram&#039;] ); ?&gt;&quot; target=&quot;_blank&quot;&gt;\n      &lt;?php endif; ?&gt;\n      &lt;?php echo esc_html( $fields&#x5B;&#039;Artist&#039;] ); ?&gt;\n      &lt;?php if ( ! empty( $fields&#x5B;&#039;Artist Instagram&#039;] ) ) : ?&gt;\n    &lt;\/a&gt;\n    &lt;?php endif; ?&gt;\n  &lt;\/p&gt;\n&lt;?php endif; ?&gt;\n&lt;?php if ( ! empty( $fields&#x5B;&#039;VIP Confirmed&#039;] ) ) : ?&gt;\n  &lt;?php $vips = explode( &#039;,&#039;, $fields&#x5B;&#039;VIP Confirmed&#039;] ); ?&gt;\n  &lt;h4&gt;VIPs confirmed&lt;\/h4&gt;\n  &lt;ul&gt;\n  &lt;?php foreach ( $vips as $vip ) : ?&gt;\n    &lt;li&gt;&lt;?php echo esc_html( $vip ); ?&gt;&lt;\/li&gt;\n  &lt;?php endforeach; ?&gt;\n  &lt;\/ul&gt;\n&lt;?php endif; ?&gt;\n&lt;\/div&gt;\n<\/pre><\/div>\n\n\n<p>The template above will make the appropriate checks to display the Artist Name and, if an Instagram URL was included, make that into a link, as well as creating a list of the VIPs confirmed for the event.<\/p>\n\n\n\n<p>Now you will need to include this new template to show after the tooltip for the month view, using the following code in your functions.php file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php \nadd_action( &#039;tribe_template_after_include:events\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/tooltip\/description&#039;,\n  function ( $file, $name, $template ) {\n    $template-&gt;template( &#039;month\/tooltip-extra-fields&#039; );\n  }, \n10, \n3 \n);\n<\/pre><\/div>\n\n\n<p>Any non-default elements that you add will be unstyled, allowing you full freedom to customize their display without worrying about style conflicts. To style these newly added elements, we will need to include a couple of CSS rules into the <code>styles.css<\/code> file\u2013or any CSS file that will be included on an Events page\u2013in our theme.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.tooltipster-base.tribe-events-tooltip-theme .theme-extra-event-fields {\n  font-size: 13px;\n}\n\n.tooltipster-base.tribe-events-tooltip-theme .theme-extra-event-fields h4 {\n  font-size: 15px;\n  margin-bottom: 10px;\n  margin-top: 10px;\n  font-weight: bold;\n}\n\n.tooltipster-base.tribe-events-tooltip-theme .theme-extra-event-fields a {\n  color: rgb(17, 85, 204);\n  font-weight: bold;\n}\n\n.tooltipster-base.tribe-events-tooltip-theme .theme-extra-event-fields ul {\n  list-style: disc;\n}\n\n.tooltipster-base.tribe-events-tooltip-theme .theme-extra-event-fields ul li {\n  margin-left: 16px;\n}\n<\/pre><\/div>\n\n\n<p>When the steps above are complete, and you have an event with the correct fields you should be able to see the information on the tooltip.<\/p>\n\n\n\n<p>For this example, we made use of the additional fields from Events Calendar Pro, but you can modify the <code>[your-theme]\/tribe\/events\/v2\/month\/tooltip-extra-fields.php<\/code> template to include any kind of customization that you wish.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-related-filters\">Related Filters<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_template_pre_html\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tribe_template_pre_html<\/code><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_template_pre_htmlhook_name\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tribe_template_pre_html:$template<\/code><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_template_pre_html\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tribe_template_html<\/code><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_template_pre_htmlhook_name\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tribe_template_html:$template<\/code><\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-related-actions\">Related Actions<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_template_before_include\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tribe_template_before_include<\/code><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_template_before_includehookname\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tribe_template_before_include:$template<\/code><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_template_after_include\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tribe_template_after_include<\/code><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.theeventscalendar.com\/reference\/hooks\/tribe_template_after_includehookname\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>tribe_template_after_include:$template<\/code><\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-display-event-venue-in-the-tooltip\">Display Event Venue in the Tooltip<\/h2>\n\n\n\n<p>In this tutorial we will walk through the steps you need to take if you want to include the venue data in the Month view tooltip. The foundation for this can be found in the <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/how-to-include-a-new-template-in-a-view\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u201cUsing Template Filters and Actions\u201d<\/a> article.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/09\/tec-month-view-tooltip-default.jpg\" alt=\"\" class=\"wp-image-1950970\"\/><figcaption class=\"wp-element-caption\">Month view tooltip<\/figcaption><\/figure>\n\n\n\n<p>First, we will need to create a file that holds the venue data we want to display. Then we will need to use a template filter to include that file in the tooltip.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-the-file\">The File<\/h4>\n\n\n\n<p>Let&#8217;s create a new file in your child theme at this location:<code>[your-theme]\/tribe\/events\/v2\/month\/tooltip-event-venue.php<\/code>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\/**\n * Get the venue ID.\n * @var integer $venue_id\n *\n * @see https:\/\/docs.theeventscalendar.com\/reference\/functions\/tribe_get_venue_id\/\n *\/\n$venue_id = tribe_get_venue_id();\n\nif ( isset( $venue_id ) &amp;&amp; $venue_id != 0 ) {\n\n\t\/**\n\t * Retrieving the venue object.\n\t * @var object $venue\n\t *\n\t * @see https:\/\/docs.theeventscalendar.com\/reference\/functions\/tribe_get_venue_object\/\n\t *\/\n\t$venue = tribe_get_venue_object( $venue_id );\n\n\techo &#039;&lt;div class=&quot;tribe-events-calendar-month__calendar-event-tooltip-venue tribe-common-b3&quot;&gt;&lt;p&gt;&#039;;\n\n\techo &#039;&lt;strong&gt;Venue:&lt;\/strong&gt; &#039;;\n\n\t\/\/ Display venue name\n\techo $venue-&gt;post_title;\n\n\t\/\/ Display venue address\n\tif ( ! empty( $venue-&gt;address ) ) {\n\t\techo &#039;, &#039; . esc_html( $venue-&gt;address );\n\t}\n\n\t\/\/ Display venue city\n\tif ( ! empty( $venue-&gt;city ) ) {\n\t\techo &#039;, &#039; . esc_html( $venue-&gt;city );\n\t}\n\n\techo &#039;&lt;\/p&gt;&lt;\/div&gt;&#039;;\n}\n\n<\/pre><\/div>\n\n\n<p>The template above checks if a venue for the event exists and if it does, then prints the venue name and the venue city.<\/p>\n\n\n\n<p>It is possible to adjust or expand this information depending on what you would like to display. You can find all the venue-related information and variables in <a href=\"https:\/\/docs.theeventscalendar.com\/reference\/functions\/tribe_get_venue_object\/#return\" target=\"_blank\" rel=\"noreferrer noopener\">this developer documentation<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-the-hook\">The Hook<\/h4>\n\n\n\n<p>To make all this information show up you will need to include this new template to show in the tooltip after (for example) the title for the month view. Copy the following code in your <em>functions.php<\/em> file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_action(\n\t&#039;tribe_template_after_include:events\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/tooltip\/title&#039;,\n\tfunction ( $file, $name, $template ) {\n\t\t$template-&gt;template( &#039;month\/tooltip-event-venue&#039; );\n\t},\n\t10,\n\t3\n);\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"h-a-detour\">A Detour<\/h4>\n\n\n\n<p>Of course, it is possible to put this information in a different place. For that, the appropriate hook needs to be used. <\/p>\n\n\n\n<p>If you look at the hook closely you will discover that it mimics the location of the template files. Let&#8217;s dissect that a bit.<\/p>\n\n\n\n<p>We are using this hook:<\/p>\n\n\n\n<p><code>tribe_template_<strong>after_include<\/strong>:events\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/tooltip\/title<\/code><\/p>\n\n\n\n<p>The &#8220;after_include&#8221; defines that what we are going to insert our new information after the named template. You could also use &#8220;before_include&#8221; if that&#8217;s what you need.<\/p>\n\n\n\n<p>The long string &#8220;v2\/month\/&#8230;\/title&#8221; actually refers to a PHP file in that folder of the plugin, namely:<\/p>\n\n\n\n<p><code>wp-content\/plugins\/the-events-calendar\/src\/views\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/tooltip\/title.php<\/code><\/p>\n\n\n\n<p>Let&#8217;s say you wanted to include the venue information after the event description. The description uses this template:<\/p>\n\n\n\n<p><code>wp-content\/plugins\/the-events-calendar\/src\/views\/<strong>v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/tooltip\/description.php<\/strong><\/code><\/p>\n\n\n\n<p>So the corresponding hook would be:<\/p>\n\n\n\n<p><code>tribe_template_after_include:events\/<strong>v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/tooltip\/description<\/strong><\/code><\/p>\n\n\n\n<p>Let&#8217;s get back on track now.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-customizing-the-appearance\">Customizing the Appearance<\/h4>\n\n\n\n<p>Any non-default elements that you add will be unstyled, allowing you full freedom to customize their display without worrying about style conflicts.<\/p>\n\n\n\n<p>The example above includes some basic classes for formatting. To further style the venue in the month view tooltip, we will need to include a couple of CSS rules into the <code>styles.css<\/code> file\u2013or any CSS file that will be included on an Events page\u2013in our theme.<\/p>\n\n\n\n<p>For this newly added venue I would give a bit more space to breathe at the bottom with the following CSS:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.tooltipster-base.tribe-events-tooltip-theme .tribe-events-calendar-month__calendar-event-tooltip-venue {\n\tmargin-bottom: var(--tec-spacer-0);\n}\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"h-the-result\">The Result<\/h4>\n\n\n\n<p>When the steps above are complete and you have an event with the correct fields you should be able to see the venue data in the month view tooltip.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/09\/tec-month-view-tooltip-with-venue.jpg\" alt=\"\" class=\"wp-image-1950971\"\/><figcaption class=\"wp-element-caption\">Month view tooltip with venue information<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-change-the-event-tooltip-layout\">Change the Event Tooltip Layout<\/h2>\n\n\n\n<p>On the Month view, when you hover over an event title, a handy tooltip will pop up, showing more details. By default, this has a vertical layout, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/05\/tec-month-view-tooltip-vertical.jpg\" alt=\"Month view with the default event tooltip\" class=\"wp-image-1952796\"\/><figcaption class=\"wp-element-caption\">Month view with the default event tooltip<\/figcaption><\/figure>\n\n\n\n<p>It is possible to change this layout to horizontal with a few lines of CSS. You can add the following CSS rules to the <em>style.css<\/em> file of your theme &#8212; preferably child theme &#8212; or in the Additional CSS box under Appearance \u2192 Customize.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.tribe-events-tooltip-theme {\n\twidth: 600px !important;\n\tmax-width: unset !important;\n}\n.tribe-events-tooltip-theme .tribe-events-calendar-month__calendar-event-tooltip-featured-image-wrapper {\n\tfloat: left;\n\tmargin-right: 2em;\n}\n.tribe-events-tooltip-theme .tribe-events-calendar-month__calendar-event-tooltip-title {\n\tclear: none;\n}\n<\/pre><\/div>\n\n\n<p>This should result in horizontal tooltips like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2022\/05\/tec-month-view-tooltip-horizontal.jpg\" alt=\"Horizontal tooltip in month view\" class=\"wp-image-1952799\"\/><figcaption class=\"wp-element-caption\">Month view with a custom horizontal event tooltip<\/figcaption><\/figure>\n\n\n\n<p>Of course, you can adjust the width of the tooltip according to your needs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-hiding-tooltips-in-month-view\">Hiding Tooltips in Month View<\/h2>\n\n\n\n<p>When hovering over an event in Month View, a small box pops up with more event details. If you prefer not to show that tooltip, the snippets below will disable it. Choose either the PHP or CSS approach \u2014 you do not need both.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Hiding Tooltips with PHP<\/h4>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nadd_filter(\n    'tribe_template_html:events\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/title',\n    function( $html ) {\n        $html = preg_replace(\n            '\/data-js=\"tribe-events-tooltip\"|data-tooltip-content=.*;\/m',\n            '',\n            $html\n        );\n        return $html;\n    }\n);\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\">Hiding Tooltips for Multi-Day Events<\/h4>\n\n\n\n<p>The filter above handles regular single-day events. To also disable tooltips for multi-day events in Month View, add this additional snippet:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfunction tec_disable_month_tooltip( $html ) {\n    $html = preg_replace(\n        '\/data-js=\"tribe-events-tooltip\"|data-tooltip-content=.*;\/m',\n        '',\n        $html\n    );\n    return $html;\n}\nadd_filter( 'tribe_template_html:events\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/title', 'tec_disable_month_tooltip' );\nadd_filter( 'tribe_template_html:events\/v2\/month\/calendar-body\/day\/multiday-events\/multiday-event\/hidden\/link', 'tec_disable_month_tooltip' );\nadd_filter( 'tribe_template_html:events\/v2\/month\/calendar-body\/day\/multiday-events\/multiday-event\/bar\/title', 'tec_disable_month_tooltip' );\n<\/pre><\/div>\n\n\n<p>Note: if you use this second snippet, you do not need the first \u2014 it covers single-day events as well via the first <code>add_filter<\/code> line.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Hiding Tooltips with CSS<\/h4>\n\n\n\n<p>If you prefer a CSS-only approach, add the following to your (child) theme&#8217;s <em>style.css<\/em> file, or under <strong>Appearance \u2192 Customize \u2192 Additional CSS<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n.tribe-events-view-month .tribe-events-tooltip-theme {\n    display: none !important;\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Hiding Days from Adjacent Months<\/h2>\n\n\n\n<p>By default, Month View fills out the grid with days from the previous and next months when a month doesn&#8217;t start on the first day of the week or end on the last. There are two approaches to hiding these days, with slightly different visual results. Both require a PHP snippet in addition to CSS \u2014 the PHP is needed to ensure the correct CSS classes are assigned when visitors navigate to months other than the current one.<\/p>\n\n\n\n<p>Add the PHP to your theme&#8217;s <code>functions.php<\/code> file or via the <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets<\/a> plugin. Add the CSS under <strong>Appearance \u2192 Customize \u2192 Additional CSS<\/strong>, or in your child theme&#8217;s stylesheet.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Option 1: Remove the Content, Collapse the Space<\/h4>\n\n\n\n<p>This approach uses <code>display: none<\/code> to hide the date number, events list, and &#8220;more events&#8221; link from adjacent-month cells entirely, collapsing the space they occupied. The result is a grid where out-of-month cells appear as blank squares.<\/p>\n\n\n\n<p><strong>PHP snippet:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nadd_filter( 'tec_events_month_day_classes_comparison_date', function( $today_date, $request_date, $day_date, $day, $today ) {\n    return $request_date;\n}, 10, 5 );\n<\/pre><\/div>\n\n\n<p><strong>CSS:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n.tribe-events-calendar-month__day--other-month .tribe-events-calendar-month__day-date,\n.tribe-events-calendar-month__day--other-month .tribe-events-calendar-month__events,\n.tribe-events-calendar-month__day--other-month .tribe-events-calendar-month__more-events {\n    display: none !important;\n}\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\">Option 2: Hide the Content, Preserve the Space<\/h4>\n\n\n\n<p>This approach uses <code>visibility: hidden<\/code>, which hides the content of adjacent-month cells but preserves their space in the grid layout. The cells remain as empty placeholders rather than collapsing. It also gives you independent control over previous-month and next-month cells separately.<\/p>\n\n\n\n<p><strong>PHP Snippet:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nadd_filter(\n    &#039;tribe_events_views_v2_view_month_template_vars&#039;,\n    function( $template_vars, $view ) {\n        \/\/ current time\n        $now = Tribe__Date_Utils::build_date_object( $template_vars&#x5B;&#039;now&#039;] );\n        \/\/ requested date - for month view this is the first of the month\n        $request_date = $template_vars&#x5B;&#039;request_date&#039;];\n\n        \/\/ if the requested date isn&#039;t the same as the current date,\n        \/\/ pass the requested date as the current date\n        if ( $now-&gt;format( &#039;Y-m-d&#039; ) !== $request_date-&gt;format( &#039;Y-m-d&#039; ) ) {\n            $template_vars&#x5B;&#039;today_date&#039;] = $template_vars&#x5B;&#039;request_date&#039;]-&gt;format( &#039;Y-m-d&#039; );\n        }\n\n        return $template_vars;\n    },\n    10,\n    2\n);\n<\/pre><\/div>\n\n\n<p><strong>CSS \u2014 hide only next month&#8217;s dates:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n.tribe-events-calendar-month__day--next-month div {\n    visibility: hidden !important;\n}\n<\/pre><\/div>\n\n\n<p><strong>CSS \u2014 hide only previous month&#8217;s dates:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n.tribe-events-calendar-month__day--past-month div {\n    visibility: hidden !important;\n}\n<\/pre><\/div>\n\n\n<p><strong>CSS \u2014 hide both:<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n.tribe-events-calendar-month__day--past-month div,\n.tribe-events-calendar-month__day--next-month div {\n    visibility: hidden !important;\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-show-closed-on-specific-days\">Show &#8220;Closed&#8221; on Specific Days<\/h2>\n\n\n\n<p>In this article, we&#8217;ll show you how to mark your business as &#8220;Closed&#8221; in Month View with your events from <a href=\"https:\/\/theeventscalendar.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">The Events Calendar<\/a>. We&#8217;ve provided you with two methods to do this: CSS and PHP.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-the-css-snippet\">The CSS Snippet<\/h4>\n\n\n\n<p>Add the following CSS snippet to your stylesheet in order to display the word &#8220;Closed&#8221; on your Month View calendar.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.tribe-events-calendar-month__week .tribe-events-calendar-month__day:nth-child(6) .tribe-events-calendar-month__events:after,\n.tribe-events-calendar-month__week .tribe-events-calendar-month__day:nth-child(7) .tribe-events-calendar-month__events:after {\n\tcontent:\"CLOSED\";\n\tfont-size:14px;\n\tmargin:10px;\n\tbackground-color:red;\n\tpadding:5px;\n\tborder-radius:10px;\n}\n<\/pre><\/div>\n\n\n<p>It&#8217;ll look something like this on the frontend:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/12\/Screen-Shot-2021-12-21-at-11.05.24-AM.png\" alt=\"mark your business as closed with The Events Calendar\" class=\"wp-image-1951496\"\/><\/figure>\n\n\n\n<p>To show a &#8220;Closed&#8221; text inside a specific Month View date, you can modify the following CSS snippet:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: css; title: ; notranslate\" title=\"\">\n.tribe-events-calendar-month__day&#x5B;aria-labelledby=\"tribe-events-calendar-day-2022-12-25\"] .tribe-events-calendar-month__events:after {\n    background: red;\n    color: white;\n    content: \"CLOSED\"!important;\n    font-size: 14px;\n    padding: 10px;\n    margin-left: 20%;\n}\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"h-customizing-the-css-snippet\">Customizing the CSS Snippet<\/h4>\n\n\n\n<p>You can customize the above snippet by changing the word &#8220;Closed&#8221; to something else, changing the font-size element, background color, or the padding and border.<\/p>\n\n\n\n<p>If you&#8217;d like to change which days are marked as &#8220;Closed&#8221;, you&#8217;ll want to edit the number next to <code>nth-child<\/code> or add another <code>nth-child<\/code> to include additional &#8220;Closed&#8221; dates.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-how-to-add-a-php-snippet\">How to Add a PHP Snippet<\/h4>\n\n\n\n<p>If you choose the PHP method, you&#8217;ll want to create a template override of this file: <code>\/the-events-calendar\/v2\/month\/calendar-body\/day\/cell.php<\/code><\/p>\n\n\n\n<p>Once you&#8217;ve created a template override, you can add the following snippet to line 54:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;!-- Mark as &quot;Closed&quot; --&gt;\n&lt;?php if ( in_array( Tribe__Date_Utils::build_date_object( $day&#x5B;&#039;date&#039;] )-&gt;format( &#039;w&#039; ), &#x5B; 0, 6 ] ) &amp;&amp; empty($day&#x5B;&#039;events&#039;])  &amp;&amp; empty($day&#x5B;&#039;multiday_events&#039;])) {?&gt;\n\t&lt;div class=&quot;tribe-events-calendar-month__calendar-event&quot;&gt;\n\t\t&lt;div class=&quot;tribe-common-h8 tribe-common-h--alt&quot;&gt;&lt;?php esc_html_e( &#039;Closed&#039;, &#039;the-events-calendar&#039; ); ?&gt;&lt;\/div&gt;\n\t&lt;\/div&gt;\n&lt;?php } ?&gt;\n<\/pre><\/div>\n\n\n<p>To customize this snippet, we&#8217;d recommend using CSS to create a custom class on the second div in the PHP snippet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-opening-links-in-a-new-tab\">Opening Links in a New Tab<\/h2>\n\n\n\n<p>Template file: <code>\/wp-content\/plugins\/the-events-calendar\/src\/views\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/title.php<\/code><\/p>\n\n\n\n<p>Override the above file with the following content, which inserts <code>target=\"_blank\"<\/code> after the <code>href<\/code> attribute of the <code>&lt;a&gt;<\/code> element.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;h3 class=&quot;tribe-events-calendar-month__calendar-event-title tribe-common-h8 tribe-common-h--alt&quot;&gt;\n\t&lt;a\n\t\thref=&quot;&lt;?php echo esc_url( $event-&gt;permalink ); ?&gt;&quot;\n\t\ttarget=&quot;_blank&quot;\n\t\ttitle=&quot;&lt;?php echo esc_attr( $event-&gt;title ); ?&gt;&quot;\n\t\trel=&quot;bookmark&quot;\n\t\tclass=&quot;tribe-events-calendar-month__calendar-event-title-link tribe-common-anchor-thin&quot;\n\t\tdata-js=&quot;tribe-events-tooltip&quot;\n\t\tdata-tooltip-content=&quot;#tribe-events-tooltip-content-&lt;?php echo esc_attr( $event-&gt;ID ); ?&gt;&quot;\n\t\taria-describedby=&quot;tribe-events-tooltip-content-&lt;?php echo esc_attr( $event-&gt;ID ); ?&gt;&quot;\n\t&gt;\n\t\t&lt;?php\n\t\t\/\/ phpcs:ignore\n\t\techo $event-&gt;title;\n\t\t?&gt;\n\t&lt;\/a&gt;\n&lt;\/h3&gt;\n<\/pre><\/div>\n\n\n<h4 class=\"wp-block-heading has-large-font-size\" id=\"h-from-the-tooltips\">From the Tooltips<\/h4>\n\n\n\n<p>Template file: <code>\/wp-content\/plugins\/the-events-calendar\/src\/views\/v2\/month\/calendar-body\/day\/calendar-events\/calendar-event\/tooltip\/title.php<\/code><\/p>\n\n\n\n<p>Override the above file with the following content, which inserts <code>target=\"_blank\"<\/code> after the <code>href<\/code> attribute of the <code>&lt;a&gt;<\/code> element.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;h3 class=&quot;tribe-events-calendar-month__calendar-event-tooltip-title tribe-common-h7&quot;&gt;\n\t&lt;a\n\t\thref=&quot;&lt;?php echo esc_url( $event-&gt;permalink ); ?&gt;&quot;\n\t\ttarget=&quot;_blank&quot;\n\t\ttitle=&quot;&lt;?php echo esc_attr( $event-&gt;title ); ?&gt;&quot;\n\t\trel=&quot;bookmark&quot;\n\t\tclass=&quot;tribe-events-calendar-month__calendar-event-tooltip-title-link tribe-common-anchor-thin&quot;\n\t&gt;\n\t\t&lt;?php\n\t\t\/\/ phpcs:ignore\n\t\techo $event-&gt;title;\n\t\t?&gt;\n\t&lt;\/a&gt;\n&lt;\/h3&gt;\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Month View lays out your events on a traditional calendar grid. You may want to tailor how that grid looks and behaves \u2014 from what appears inside each day to how event tooltips are presented. This article collects a range of common Month View customizations. Show All Events For a Day in Month View Sometimes&#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":[116,24,59,84],"tags":[25,58],"stellar-product-taxonomy":[161],"class_list":["post-1896499","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-customizing","category-php","category-templates","tag-customizations","tag-php","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":116,"label":"CSS"},{"value":24,"label":"Customizing"},{"value":59,"label":"PHP"},{"value":84,"label":"Template Overrides"}],"post_tag":[{"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":"The Events Calendar Team","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/the_events_calendar_team\/"},"comment_info":0,"category_info":[{"term_id":116,"name":"CSS","slug":"css","term_group":0,"term_taxonomy_id":116,"taxonomy":"category","description":"","parent":24,"count":19,"filter":"raw","term_order":"0","cat_ID":116,"category_count":19,"category_description":"","cat_name":"CSS","category_nicename":"css","category_parent":24},{"term_id":24,"name":"Customizing","slug":"customizing","term_group":0,"term_taxonomy_id":24,"taxonomy":"category","description":"","parent":0,"count":67,"filter":"raw","term_order":"0","cat_ID":24,"category_count":67,"category_description":"","cat_name":"Customizing","category_nicename":"customizing","category_parent":0},{"term_id":59,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":59,"taxonomy":"category","description":"","parent":24,"count":52,"filter":"raw","term_order":"0","cat_ID":59,"category_count":52,"category_description":"","cat_name":"PHP","category_nicename":"php","category_parent":24},{"term_id":84,"name":"Template Overrides","slug":"templates","term_group":0,"term_taxonomy_id":84,"taxonomy":"category","description":"","parent":24,"count":27,"filter":"raw","term_order":"0","cat_ID":84,"category_count":27,"category_description":"","cat_name":"Template Overrides","category_nicename":"templates","category_parent":24}],"tag_info":[{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":31,"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":22,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896499","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=1896499"}],"version-history":[{"count":12,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896499\/revisions"}],"predecessor-version":[{"id":1970053,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896499\/revisions\/1970053"}],"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=1896499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896499"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}