{"id":1038901,"date":"2015-12-10T08:12:30","date_gmt":"2015-12-10T16:12:30","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/"},"modified":"2015-12-21T08:58:25","modified_gmt":"2015-12-21T16:58:25","slug":"long-content-on-event-description-but-still-allow-html","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/","title":{"rendered":"Long content on event description, but still allow HTML"},"content":{"rendered":"<p>Greetings<\/p>\n<p>I&#8217;m aware of the issue where content is taken instead of the excerpt when showing the event description (such as on the Month view&#8217;s overlay). The fix https:\/\/theeventscalendar.com\/support\/forums\/topic\/4-0-hoverpreview-in-month-view-shows-full-event-description-not-excerpt\/#post-1034775 was good for that.<\/p>\n<p>But, in my case, I really appreciated the HTML that was coming through with that new way of getting the event&#8217;s &#8220;excerpt&#8221;, since it enabled me to display a &#8220;Cancelled event&#8221; of &#8220;Event full&#8221; stamp above the description when needed&#8230;<\/p>\n<p>I&#8217;m looking for a way to still be able to have that custom HTML at the very beginning of my event&#8217;s post content, yet not having to display the full length of the description.<\/p>\n<p>I tried using str_word_count and play around with the general.php (src\/functions\/template-tags\/general.php) but I couldn&#8217;t quite figure out the best way to keep HTML div insert (at the begining of my post) and a few words\/exceprt from the description.<\/p>\n<p>Furthermore, I fear that if I modify that specific file, future updates will patch my own code (I don&#8217;t think this files can be &#8220;themed&#8221;)&#8230;<\/p>\n<p>Any suggestions?<\/p>\n","protected":false},"template":"","class_list":["post-1038901","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>Long content on event description, but still allow HTML -<\/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\/long-content-on-event-description-but-still-allow-html\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Long content on event description, but still allow HTML -\" \/>\n<meta property=\"og:description\" content=\"Greetings I&#8217;m aware of the issue where content is taken instead of the excerpt when showing the event description (such as on the Month view&#8217;s overlay). The fix https:\/\/theeventscalendar.com\/support\/forums\/topic\/4-0-hoverpreview-in-month-view-shows-full-event-description-not-excerpt\/#post-1034775 was good for that. But, in my case, I really appreciated the HTML that was coming through with that new way of getting the event&#8217;s &#8220;excerpt&#8221;, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-12-21T16:58:25+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\/long-content-on-event-description-but-still-allow-html\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/\",\"name\":\"Long content on event description, but still allow HTML -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-12-10T16:12:30+00:00\",\"dateModified\":\"2015-12-21T16:58:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/#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\":\"Long content on event description, but still allow HTML\"}]},{\"@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":"Long content on event description, but still allow HTML -","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\/long-content-on-event-description-but-still-allow-html\/","og_locale":"en_US","og_type":"article","og_title":"Long content on event description, but still allow HTML -","og_description":"Greetings I&#8217;m aware of the issue where content is taken instead of the excerpt when showing the event description (such as on the Month view&#8217;s overlay). The fix https:\/\/theeventscalendar.com\/support\/forums\/topic\/4-0-hoverpreview-in-month-view-shows-full-event-description-not-excerpt\/#post-1034775 was good for that. But, in my case, I really appreciated the HTML that was coming through with that new way of getting the event&#8217;s &#8220;excerpt&#8221;, [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/","article_modified_time":"2015-12-21T16:58:25+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\/long-content-on-event-description-but-still-allow-html\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/","name":"Long content on event description, but still allow HTML -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-12-10T16:12:30+00:00","dateModified":"2015-12-21T16:58:25+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/long-content-on-event-description-but-still-allow-html\/#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":"Long content on event description, but still allow HTML"}]},{"@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\/1038901","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1038901\/revisions"}],"predecessor-version":[{"id":1038905,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1038901\/revisions\/1038905"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1038901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}