{"id":1944869,"date":"2020-01-21T16:56:03","date_gmt":"2020-01-21T21:56:03","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?post_type=tribe-knowledgebase&#038;p=1944869"},"modified":"2026-04-02T17:38:11","modified_gmt":"2026-04-02T21:38:11","slug":"responsive-templates","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/responsive-templates\/","title":{"rendered":"Responsive Templates with The Events Calendar"},"content":{"rendered":"\n<p>The Events Calendar features a responsive design, which is a fancy way if saying it adjusts its layout according to the size of the screen it is being viewed on, like a smartphone or tablet. While it works smoothly in most cases, there may be situations where you want to adjust the responsiveness, say to accommodate a specific page template in your theme.<\/p>\n\n\n\n<p>The default breakpoint (i.e. the screen width where the layout adjusts) is is 768px. If the screen is narrower than 768px, then the calendar will adjust to a compact layout designed for smaller screens. If the screen is 768pc or wider, then the full-size layout is displayed.<\/p>\n\n\n\n<p>This breakpoint can be customized or completely removed with different filters. Let&#8217;s check that out.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-calendar-views\">Calendar views <\/h2>\n\n\n\n<p>The plugin includes three different breakpoints, all of which can be customized:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>xsmall<\/code>: 500px<\/li>\n\n\n\n<li><code>medium<\/code>: 768px<\/li>\n\n\n\n<li><code>full<\/code>: 960px<\/li>\n<\/ul>\n\n\n\n<p>To customize these breakpoints, use the following filters:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>tribe_events_views_v2_view_breakpoints<\/code><\/strong>: Edits the breakpoints for all calendar views<\/li>\n\n\n\n<li><code><strong>tribe_events_views_v2_view_{view}_breakpoints<\/strong><\/code>: Edits breakpoints for the defined view, where <code>{view}<\/code> is the slug of the view you want to adjust (i.e. <code>month<\/code>, <code>list<\/code>, etc.)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-customizing-responsive-breakpoints-for-all-calendar-views\">Customizing responsive breakpoints for all calendar views<\/h3>\n\n\n\n<p>Let&#8217;s say we want to customize the <code>medium<\/code> responsive breakpoint from 768px to 600px. Adding this snippet to the theme&#8217;s <code>functions.php<\/code> file will do the trick:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; highlight: [2]; title: ; notranslate\" title=\"\">\nfunction customize_tribe_events_v2_medium_breakpoint( $breakpoints ) {\n  $breakpoints&#x5B;'medium'] = 600;\n\n  return $breakpoints;\n}\n\nadd_filter( 'tribe_events_views_v2_view_breakpoints', 'customize_tribe_events_v2_medium_breakpoint' );\n<\/pre><\/div>\n\n\n<p>Now let&#8217;s say we want to change the breakpoints for the <code>xsmall<\/code> and <code>full<\/code> breakpoints as well. We can customize all three in the same filter:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; highlight: [3,5]; title: ; notranslate\" title=\"\">\nfunction customize_tribe_events_v2_breakpoints( $breakpoints ) {\n  $breakpoints = &#x5B;\n    &#039;xsmall&#039; =&gt; 480,\n    &#039;medium&#039; =&gt; 600,\n    &#039;full&#039;   =&gt; 800,\n  ];\n\n  return $breakpoints;\n}\n\nadd_filter( &#039;tribe_events_views_v2_view_breakpoints&#039;, &#039;customize_tribe_events_v2_breakpoints&#039; );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-customizing-responsive-breakpoints-for-a-selected-calendar-view\">Customizing responsive breakpoints for a selected calendar view<\/h3>\n\n\n\n<p>Removing breakpoints doesn&#8217;t have to be an all-or-nothing sort of thing. Each view has a filter for each responsive breakpoint, allowing them to be customized for specific views:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>List view:<\/strong> <code>tribe_events_views_v2_view_list_breakpoints<\/code><\/li>\n\n\n\n<li><strong>Month view:<\/strong> <code>tribe_events_views_v2_view_month_breakpoints<\/code><\/li>\n\n\n\n<li><strong>Day view:<\/strong> <code>tribe_events_views_v2_view_day_breakpoints<\/code><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ Customizes the medium responsive breakpoint for month view from 768px to 600px\nfunction customize_tribe_events_v2_view_month_medium_breakpoint( $breakpoints ) {\n    $breakpoints&#x5B;'medium'] = 600;\n\n    return $breakpoints;\n}\n\nadd_filter( 'tribe_events_views_v2_view_month_breakpoints', 'customize_tribe_events_v2_view_month_medium_breakpoint' );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-removing-responsive-breakpoints\">Removing responsive breakpoints<\/h3>\n\n\n\n<p>To completely remove all of the breakpoints use this filter in the theme&#8217;s <code>functions.php<\/code> file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ Removes all responsive breakpoints in every calendar view\nadd_filter( 'tribe_events_views_v2_view_breakpoints', '__return_empty_array' );\n<\/pre><\/div>\n\n\n<p>And respectively to completely remove any breakpoints for a specific view, list view in this example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ Removes all responsive breakpoints in the calendar's list view\nadd_filter( 'tribe_events_views_v2_view_list_breakpoints', '__return_empty_array' );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-customize-or-remove-the-responsive-breakpoint\">Customize or remove the responsive breakpoint<\/h3>\n\n\n\n<p>Let\u2019s say you want to customize the responsive breakpoint to be 600px. This following snippet filters the <code>tribe_events_mobile_breakpoint<\/code> function to adjust the breakpoint from 768px to 600px, and can be added to your theme&#8217;s <code>functions.php<\/code> file at the end:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nfunction customize_tribe_events_breakpoint() {\n  return 600;\n}\n\nadd_filter( 'tribe_events_mobile_breakpoint', 'customize_tribe_events_breakpoint' );\n<\/pre><\/div>\n\n\n<p>Now let\u2019s say you want to remove the responsiveness altogether. That&#8217;s where the <code>tribe_events_kill_responsive<\/code> filter comes into play. Add it to your <code>functions.php<\/code> file and pass a value of <code>__return_true<\/code> in there to remove the responsive breakpoint.<\/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<h3 class=\"wp-block-heading\" id=\"h-style-the-calendar-based-on-its-responsiveness\">Style the calendar based on its responsiveness<\/h3>\n\n\n\n<p>The Events Calendar includes the following CSS classes, which are added to the <code>&lt;body&gt;<\/code> class, giving you control over the appearance of the calendar based on whether it is responsive or being viewed on a small screen.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>.tribe-is-responsive<\/code><\/strong>:\u00a0This class is always available, unless the breakpoint has been removed like we saw in the previous section. In other words, this class is removed when responsiveness is disabled.<\/li>\n\n\n\n<li><strong><code>.tribe-mobile<\/code><\/strong>: This class is automatically added when responsiveness is enabled and the calendar is viewed on a small screen, narrower than 768px, or a custom breakpoint, if you set one like we did in the previous section.<\/li>\n<\/ul>\n\n\n\n<p>So, for example, the following could be added to the theme&#8217;s <code>style.css<\/code> file, or by <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/customizing-css\/#Overwriting_CSS_files\">overriding the calendar&#8217;s default styles with a custom stylesheet<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Events Calendar features a responsive design, which is a fancy way if saying it adjusts its layout according to the size of the screen it is being viewed on, like a smartphone or tablet. While it works smoothly in most cases, there may be situations where you want to adjust the responsiveness, say to&#8230;<\/p>\n","protected":false},"author":3,"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":[84],"tags":[23,58],"stellar-product-taxonomy":[161],"class_list":["post-1944869","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-theming-overview","tag-css","tag-php","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":84,"label":"Templating &amp; Layout"}],"post_tag":[{"value":23,"label":"CSS"},{"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":"Jaime Marchwinski","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":84,"name":"Templating &amp; Layout","slug":"theming-overview","term_group":0,"term_taxonomy_id":84,"taxonomy":"category","description":"","parent":24,"count":59,"filter":"raw","term_order":"0","cat_ID":84,"category_count":59,"category_description":"","cat_name":"Templating &amp; Layout","category_nicename":"theming-overview","category_parent":24}],"tag_info":[{"term_id":23,"name":"CSS","slug":"css","term_group":0,"term_taxonomy_id":23,"taxonomy":"post_tag","description":"","parent":20,"count":33,"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":78,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1944869","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1944869"}],"version-history":[{"count":3,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1944869\/revisions"}],"predecessor-version":[{"id":1968459,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1944869\/revisions\/1968459"}],"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=1944869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1944869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1944869"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1944869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}