{"id":941676,"date":"2015-02-11T10:13:28","date_gmt":"2015-02-11T18:13:28","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/"},"modified":"2015-02-17T11:50:16","modified_gmt":"2015-02-17T19:50:16","slug":"preventing-line-breaks-between-time-and-am-and-pm","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/","title":{"rendered":"Preventing line breaks between time and &quot;am&quot; and &quot;pm&quot;?"},"content":{"rendered":"<p>Hi, <\/p>\n<p>I need to find a way to keep the am and pm portions of the start- and end-dates together with their respsective times, and not break in two lines.<br \/>\nExample:<\/p>\n<blockquote><p>BAD:<br \/>\nFebruary 15, 12:30 pm &#8211; 1:30<br \/>\nam <\/p>\n<p>Good:<br \/>\nFebruary 15, 12:30 pm &#8211;<br \/>\n1:30 am<\/p>\n<p>BETTER:<br \/>\nFebruary 15,<br \/>\n12:30 pm &#8211; 1:30 am<\/p><\/blockquote>\n<p>At the moment I am looking at\/ working on the widget view: (but I suspect the code applies to all instances). <\/p>\n<pre><code>&lt;div class=&quot;duration&quot;&gt;\n &lt;span class=&quot;date-start dtstart&quot;&gt;February 15, 12:30 pm&lt;span title=&quot;2015-02-15EST12:30&quot; class=&quot;value-title&quot;&gt;&lt;\/span&gt;&lt;\/span&gt;&amp;nbsp;-&amp;nbsp;&lt;span class=&quot;end-time dtend&quot;&gt;1:30 pm&lt;span title=&quot;2015-02-15EST01:30&quot; class=&quot;value-title&quot;&gt;&lt;\/span&gt;&lt;\/span&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>I tried adding a couple of nonbreaking spaces around the time separator, but since there is a normal, breaking space between the time and &#8220;am&#8221; and &#8220;pm&#8221; that didn&#8217;t help much. And there&#8217;s no span around just the time that I can target with CSS either. Any ideas?<\/p>\n<p>\/anders<\/p>\n","protected":false},"template":"","class_list":["post-941676","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>Preventing line breaks between time and &quot;am&quot; and &quot;pm&quot;? -<\/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\/preventing-line-breaks-between-time-and-am-and-pm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Preventing line breaks between time and &quot;am&quot; and &quot;pm&quot;? -\" \/>\n<meta property=\"og:description\" content=\"Hi, I need to find a way to keep the am and pm portions of the start- and end-dates together with their respsective times, and not break in two lines. Example: BAD: February 15, 12:30 pm &#8211; 1:30 am Good: February 15, 12:30 pm &#8211; 1:30 am BETTER: February 15, 12:30 pm &#8211; 1:30 am [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-02-17T19:50:16+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\/preventing-line-breaks-between-time-and-am-and-pm\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/\",\"name\":\"Preventing line breaks between time and &quot;am&quot; and &quot;pm&quot;? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-02-11T18:13:28+00:00\",\"dateModified\":\"2015-02-17T19:50:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/#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\":\"Preventing line breaks between time and &quot;am&quot; and &quot;pm&quot;?\"}]},{\"@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":"Preventing line breaks between time and &quot;am&quot; and &quot;pm&quot;? -","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\/preventing-line-breaks-between-time-and-am-and-pm\/","og_locale":"en_US","og_type":"article","og_title":"Preventing line breaks between time and &quot;am&quot; and &quot;pm&quot;? -","og_description":"Hi, I need to find a way to keep the am and pm portions of the start- and end-dates together with their respsective times, and not break in two lines. Example: BAD: February 15, 12:30 pm &#8211; 1:30 am Good: February 15, 12:30 pm &#8211; 1:30 am BETTER: February 15, 12:30 pm &#8211; 1:30 am [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/","article_modified_time":"2015-02-17T19:50:16+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\/preventing-line-breaks-between-time-and-am-and-pm\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/","name":"Preventing line breaks between time and &quot;am&quot; and &quot;pm&quot;? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-02-11T18:13:28+00:00","dateModified":"2015-02-17T19:50:16+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/preventing-line-breaks-between-time-and-am-and-pm\/#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":"Preventing line breaks between time and &quot;am&quot; and &quot;pm&quot;?"}]},{"@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\/941676","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\/941676\/revisions"}],"predecessor-version":[{"id":941791,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/941676\/revisions\/941791"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=941676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}