{"id":1071180,"date":"2016-02-10T22:57:51","date_gmt":"2016-02-11T06:57:51","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/"},"modified":"2016-02-26T08:35:04","modified_gmt":"2016-02-26T16:35:04","slug":"startend-time-in-tooltip-month-view","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/","title":{"rendered":"Start\/End Time in Tooltip Month View"},"content":{"rendered":"<p>I&#8217;m a new developer to a website that already purchased The Events Calendar &amp; Pro. Unfortunately I don&#8217;t have their login for that purchase but I hope you&#8217;ll help me with this anyway.<\/p>\n<p>I have tried a few different suggestions throughout the knowledge-base and forum but none of them seem to be working properly.<\/p>\n<p>Currently if I add start &amp; end times to the tooltip code for the month view, it shows the full date: Month, day, &amp; time. I just want the start time and end time not the month or the day. I attempted to add an &#8220;additional data&#8221; variable in the single-event.php file for the month view. I&#8217;ve provided that code below so maybe you can show me where I&#8217;m going wrong. I implemented it in the tooltip.php file by using [[= just_start_time]] and [[= just_end_time]] in the place of [[= startTime]] and [[= endTime]]. Any help would be greatly appreciated!<\/p>\n<p>Code added to\/altered at the bottom of single-event.php:<\/p>\n<p><em>(all code above this is as originally coded by you)<\/em><br \/>\n*<br \/>\n*\/<\/p>\n<p>\/\/ add the additional data and then pass it on to tribe_events_template_data<br \/>\n$additional_data = array();<\/p>\n<p>$strings = tribe_get_start_time(null, &#8216;h:i A&#8217;);<br \/>\n$stringe = tribe_get_end_time(null, &#8216;h:i A&#8217;);<br \/>\n$additional_data[&#8216;just_start_time&#8217;] = tribe_prepare_for_json( $strings );<br \/>\n$additional_data[&#8216;just_end_time&#8217;] = tribe_prepare_for_json( $stringe );<\/p>\n<p>?&gt;<\/p>\n<p>&lt;div id=&#8221;tribe-events-event-&lt;?php echo esc_attr( $event_id ); ?&gt;&#8221; class=&#8221;&lt;?php tribe_events_event_classes() ?&gt;&#8221; data-tribejson='&lt;?php echo tribe_events_template_data( $event, $additional_data ); ?&gt;&#8217;&gt;<br \/>\n&#8221; class=&#8221;url&#8221;&gt;&lt;?php echo $title ?&gt;<br \/>\n&lt;\/div&gt;&lt;!&#8211; #tribe-events-event-# &#8211;&gt;<\/p>\n","protected":false},"template":"","class_list":["post-1071180","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>Start\/End Time in Tooltip Month 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\/startend-time-in-tooltip-month-view\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Start\/End Time in Tooltip Month View -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m a new developer to a website that already purchased The Events Calendar &amp; Pro. Unfortunately I don&#8217;t have their login for that purchase but I hope you&#8217;ll help me with this anyway. I have tried a few different suggestions throughout the knowledge-base and forum but none of them seem to be working properly. Currently [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-26T16:35:04+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/\",\"name\":\"Start\/End Time in Tooltip Month View -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-02-11T06:57:51+00:00\",\"dateModified\":\"2016-02-26T16:35:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-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\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Start\/End Time in Tooltip Month 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":"Start\/End Time in Tooltip Month 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\/startend-time-in-tooltip-month-view\/","og_locale":"en_US","og_type":"article","og_title":"Start\/End Time in Tooltip Month View -","og_description":"I&#8217;m a new developer to a website that already purchased The Events Calendar &amp; Pro. Unfortunately I don&#8217;t have their login for that purchase but I hope you&#8217;ll help me with this anyway. I have tried a few different suggestions throughout the knowledge-base and forum but none of them seem to be working properly. Currently [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/","article_modified_time":"2016-02-26T16:35:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/","name":"Start\/End Time in Tooltip Month View -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-02-11T06:57:51+00:00","dateModified":"2016-02-26T16:35:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-view\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/startend-time-in-tooltip-month-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":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"Start\/End Time in Tooltip Month 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\/1071180","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\/1071180\/revisions"}],"predecessor-version":[{"id":1071256,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1071180\/revisions\/1071256"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1071180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}