{"id":1407796,"date":"2017-12-18T07:04:49","date_gmt":"2017-12-18T15:04:49","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/"},"modified":"2017-12-19T04:40:14","modified_gmt":"2017-12-19T12:40:14","slug":"calendar-view-not-appearing-on-mobile-page-just-reloads-list-view","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/","title":{"rendered":"Calendar view not appearing on mobile. Page just reloads list view"},"content":{"rendered":"<p>Hi,<br \/>\nI am using Events Calendar Pro. I have set the default view to calendar with the option to also select the list view from the drop-down. It works fine on desktop but on mobile it just reloads the list view. I can&#8217;t get to the calendar at all.<\/p>\n<p>I have added css to the Avada theme to tweak the single event page style and have also edited the function.php to change the text displayed at the top of the page (for example: instead of saying &#8220;Events for February 1-xxxx&#8221; it just reads Progress Schedule. I also added code to force the calendar to display starting February 2018 (since this is a festival and that is the only time we have events.)<\/p>\n<p>I suspect one of these actions are causing the page not too load in mobile but I don&#8217;t know what to change to fix it&#8230;or maybe it&#8217;s not even this. This is the code in fucntions.php<\/p>\n<p><code>\/*<br \/>\n* Alters event's archive titles<br \/>\n*\/<br \/>\nfunction tribe_alter_event_archive_titles ( $original_recipe_title, $depth ) {<br \/>\n\/\/ Modify the titles here<br \/>\n\/\/ Some of these include %1$s and %2$s, these will be replaced with relevant dates<br \/>\n$title_upcoming = 'Progress Festival'; \/\/ List View: Upcoming events<br \/>\n$title_past = 'Past Events'; \/\/ List view: Past events<br \/>\n$title_range = 'Schedule for Progress Festival'; \/\/ List view: range of dates being viewed<br \/>\n$title_month = 'Schedule for Progress Festival'; \/\/ Month View<br \/>\n$title_day = 'Schedule for %1$s'; \/\/ Day View, %1$s = the day<br \/>\n$title_all = 'All events for %s'; \/\/ showing all recurrences of an event, %s = event title<br \/>\n$title_week = 'Schedule for week of %s'; \/\/ Week view<br \/>\n\/\/ Don't modify anything below this unless you know what it does<br \/>\nglobal $wp_query;<br \/>\n$tribe_ecp = Tribe__Events__Main::instance();<br \/>\n$date_format = apply_filters( 'tribe_events_pro_page_title_date_format', tribe_get_date_format( true ) );<br \/>\n\/\/ Default Title<br \/>\n$title = $title_upcoming;<br \/>\n\/\/ If there's a date selected in the tribe bar, show the date range of the currently showing events<br \/>\nif ( isset( $_REQUEST['tribe-bar-date'] ) &amp;&amp; $wp_query-&gt;have_posts() ) {<br \/>\nif ( $wp_query-&gt;get( 'paged' ) &gt; 1 ) {<br \/>\n\/\/ if we're on page 1, show the selected tribe-bar-date as the first date in the range<br \/>\n$first_event_date = tribe_get_start_date( $wp_query-&gt;posts[0], false );<br \/>\n} else {<br \/>\n\/\/otherwise show the start date of the first event in the results<br \/>\n$first_event_date = tribe_event_format_date( $_REQUEST['tribe-bar-date'], false );<br \/>\n}<br \/>\n$last_event_date = tribe_get_end_date( $wp_query-&gt;posts[ count( $wp_query-&gt;posts ) - 1 ], false );<br \/>\n$title = sprintf( $title_range, $first_event_date, $last_event_date );<br \/>\n} elseif ( tribe_is_past() ) {<br \/>\n$title = $title_past;<br \/>\n}<br \/>\n\/\/ Month view title<br \/>\nif ( tribe_is_month() ) {<br \/>\n$title = sprintf(<br \/>\n$title_month,<br \/>\ndate_i18n( tribe_get_option( 'monthAndYearFormat', 'F Y' ), strtotime( tribe_get_month_view_date() ) )<br \/>\n);<br \/>\n}<br \/>\n\/\/ Day view title<br \/>\nif ( tribe_is_day() ) {<br \/>\n$title = sprintf(<br \/>\n$title_day,<br \/>\ndate_i18n( tribe_get_date_format( true ), strtotime( $wp_query-&gt;get( 'start_date' ) ) )<br \/>\n);<br \/>\n}<br \/>\n\/\/ All recurrences of an event<br \/>\nif ( function_exists('tribe_is_showing_all') &amp;&amp; tribe_is_showing_all() ) {<br \/>\n$title = sprintf( $title_all, get_the_title() );<br \/>\n}<br \/>\n\/\/ Week view title<br \/>\nif ( function_exists('tribe_is_week') &amp;&amp; tribe_is_week() ) {<br \/>\n$title = sprintf(<br \/>\n$title_week,<br \/>\ndate_i18n( $date_format, strtotime( tribe_get_first_week_day( $wp_query-&gt;get( 'start_date' ) ) ) )<br \/>\n);<br \/>\n}<br \/>\nif ( is_tax( $tribe_ecp-&gt;get_event_taxonomy() ) &amp;&amp; $depth ) {<br \/>\n$cat = get_queried_object();<br \/>\n$title = '<a href=\"' . esc_url( tribe_get_events_link() ) . '\">' . $title . '<\/a>';<br \/>\n$title .= ' \u203a ' . $cat-&gt;name;<br \/>\n}<br \/>\nreturn $title;<br \/>\n}<br \/>\nadd_filter( 'tribe_get_events_title', 'tribe_alter_event_archive_titles', 11, 2 );<\/p>\n<p>\/**<br \/>\n* Sets the default date for event queries.<br \/>\n*<br \/>\n* Expects to be called during tribe_events_pre_get_posts. Note that this<br \/>\n* function modifies $_REQUEST - this is needed for consistency because<br \/>\n* various parts of TEC inspect that array directly to determine the current<br \/>\n* date.<br \/>\n*<br \/>\n* @param WP_Query $query<br \/>\n*\/<br \/>\nfunction tribe_force_event_date( WP_Query $query ) {<br \/>\n\/\/ Don't touch single posts or queries other than the main query<br \/>\nif ( ! $query-&gt;is_main_query() || is_single() ) {<br \/>\nreturn;<br \/>\n}<br \/>\n\/\/ If a date has already been set by some other means, bail out<br \/>\nif ( strlen( $query-&gt;get( 'eventDate' ) ) || ! empty( $_REQUEST['tribe-bar-date'] ) ) {<br \/>\nreturn;<br \/>\n}<br \/>\n\/\/ Change this to whatever date you prefer<br \/>\n$default_date = '2018-02-01';<br \/>\n\/\/ Use the preferred default date<br \/>\n$query-&gt;set( 'eventDate', $default_date );<br \/>\n$query-&gt;set( 'start_date', $default_date );<br \/>\n$_REQUEST['tribe-bar-date'] = $default_date;<br \/>\n}<br \/>\nadd_action( 'tribe_events_pre_get_posts', 'tribe_force_event_date' );<\/code><\/p>\n<p>The url is: http:\/\/progressfestival.org\/schedule but it is currently password protected until it goes live on Tuesday morning. I can send login info in a private message if you think you can help.<\/p>\n<p>Thank you very much.<\/p>\n","protected":false},"template":"","class_list":["post-1407796","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>Calendar view not appearing on mobile. Page just reloads list view -<\/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\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calendar view not appearing on mobile. Page just reloads list view -\" \/>\n<meta property=\"og:description\" content=\"Hi, I am using Events Calendar Pro. I have set the default view to calendar with the option to also select the list view from the drop-down. It works fine on desktop but on mobile it just reloads the list view. I can&#8217;t get to the calendar at all. I have added css to the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-19T12:40:14+00:00\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/\",\"name\":\"Calendar view not appearing on mobile. Page just reloads list view -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-12-18T15:04:49+00:00\",\"dateModified\":\"2017-12-19T12:40:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/#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\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Calendar view not appearing on mobile. Page just reloads list view\"}]},{\"@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":"Calendar view not appearing on mobile. Page just reloads list view -","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\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/","og_locale":"en_US","og_type":"article","og_title":"Calendar view not appearing on mobile. Page just reloads list view -","og_description":"Hi, I am using Events Calendar Pro. I have set the default view to calendar with the option to also select the list view from the drop-down. It works fine on desktop but on mobile it just reloads the list view. I can&#8217;t get to the calendar at all. I have added css to the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/","article_modified_time":"2017-12-19T12:40:14+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/","name":"Calendar view not appearing on mobile. Page just reloads list view -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-12-18T15:04:49+00:00","dateModified":"2017-12-19T12:40:14+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calendar-view-not-appearing-on-mobile-page-just-reloads-list-view\/#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":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Calendar view not appearing on mobile. Page just reloads list view"}]},{"@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\/1407796","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1407796\/revisions"}],"predecessor-version":[{"id":1408608,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1407796\/revisions\/1408608"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1407796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}