{"id":1292573,"date":"2017-06-02T12:49:58","date_gmt":"2017-06-02T19:49:58","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/"},"modified":"2017-06-05T15:10:03","modified_gmt":"2017-06-05T22:10:03","slug":"add-html-before-event-content-control-with-css","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/","title":{"rendered":"&quot;Add HTML before event content&quot; control with CSS"},"content":{"rendered":"<p>I know that the &#8220;Add HTML before event content&#8221; gets added to every page, but I only want it to appear on the main &#8220;Events&#8221; page.  If you gave each page type a unique CSS class, then I could easily hide the text on all of the other pages.<\/p>\n<p>From what I can see in your docs, I have to modify PHP code which seems unnecessarily cumbersome for what should be a simple, routine task.  I would think many people would choose to have some sort of description or introductory text on the primary page that lists all events, that they would not want to repeat again on individual event pages.<\/p>\n<p>If there is some better way to add text only on the main page, please let me know that, too.<\/p>\n<p>If you look at http:\/\/raffatech.com\/seminars\/ you will see what we are trying to accomplish.  This is using a standard WP page along with an ECP shortcode.<\/p>\n<p>The base page your plugin creates, http:\/\/raffatech.com\/events\/, would be okay if we could put that same text on it (and not have that text on any other event page).<\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-1292573","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>&quot;Add HTML before event content&quot; control with CSS -<\/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\/add-html-before-event-content-control-with-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;Add HTML before event content&quot; control with CSS -\" \/>\n<meta property=\"og:description\" content=\"I know that the &#8220;Add HTML before event content&#8221; gets added to every page, but I only want it to appear on the main &#8220;Events&#8221; page. If you gave each page type a unique CSS class, then I could easily hide the text on all of the other pages. From what I can see in [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-05T22:10:03+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\/add-html-before-event-content-control-with-css\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/\",\"name\":\"&quot;Add HTML before event content&quot; control with CSS -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-06-02T19:49:58+00:00\",\"dateModified\":\"2017-06-05T22:10:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/#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\":\"&quot;Add HTML before event content&quot; control with CSS\"}]},{\"@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":"&quot;Add HTML before event content&quot; control with CSS -","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\/add-html-before-event-content-control-with-css\/","og_locale":"en_US","og_type":"article","og_title":"&quot;Add HTML before event content&quot; control with CSS -","og_description":"I know that the &#8220;Add HTML before event content&#8221; gets added to every page, but I only want it to appear on the main &#8220;Events&#8221; page. If you gave each page type a unique CSS class, then I could easily hide the text on all of the other pages. From what I can see in [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/","article_modified_time":"2017-06-05T22:10:03+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\/add-html-before-event-content-control-with-css\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/","name":"&quot;Add HTML before event content&quot; control with CSS -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-06-02T19:49:58+00:00","dateModified":"2017-06-05T22:10:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-html-before-event-content-control-with-css\/#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":"&quot;Add HTML before event content&quot; control with CSS"}]},{"@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\/1292573","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\/1292573\/revisions"}],"predecessor-version":[{"id":1293429,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1292573\/revisions\/1293429"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1292573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}