{"id":1947907,"date":"2020-08-11T14:04:50","date_gmt":"2020-08-11T18:04:50","guid":{"rendered":"https:\/\/theeventscalendar.com\/knowledgebase\/?post_type=tribe-knowledgebase&#038;p=1947907"},"modified":"2026-04-22T01:14:45","modified_gmt":"2026-04-22T05:14:45","slug":"customize-virtual-events","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/customize-virtual-events\/","title":{"rendered":"Customizing Virtual Events"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-hiding-virtual-event-content-after-the-event-is-over\">Hiding Virtual Event Content After the Event is Over<\/h2>\n\n\n\n<p>When hosting virtual events, you will have the option to show livestream links (Zoom, webinar, etc.) on the event page. The content of the page is visible from the time of publishing or from the start of the event until the ends of time.<\/p>\n\n\n\n<p>If you would rather have that part of the content disappear after the event is over, that&#8217;s also possible. You need a tiny <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/k\/customizing-template-files-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">template override<\/a> for it.<\/p>\n\n\n\n<p class=\"has-text-color has-background\" style=\"color:#141827;background-color:var(--global-palette8)\">\ud83d\udc4b A template override is basically taking one of the files of our plugins responsible for showing content on the front end, making a copy of it in a specific folder, and making modifications to that copied file. These files can be found in the <code>src\/views<\/code> folder of our plugins.<\/p>\n\n\n\n<p>In this example, you will see how to hide the content of a Zoom call after the event has passed.<\/p>\n\n\n\n<p>You will need to create a template override for this file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nwp-content\/plugins\/events-pro\/src\/views\/zoom\/single\/zoom-details.php\n<\/pre><\/div>\n\n\n<p>Take that file and make a copy of it here:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nwp-content\/themes\/&#x5B;your-child-theme]\/tribe\/events-virtual\/zoom\/single\/zoom-details.php\n<\/pre><\/div>\n\n\n<p>Open up the file for editing, and right before the HTML code starts &#8211; before the first <code>&lt;div<\/code> &#8211; add this line:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;?php if ( ! tribe_is_past_event() ) : ?&gt;\n<\/pre><\/div>\n\n\n<p>The beginning of the file should look something like this now. <em>(Note, the line numbers are approximate.)<\/em><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; first-line: 21; highlight: [29]; title: ; notranslate\" title=\"\">\n\/\/ Remove the query vars from the zoom URL to avoid too long a URL in display.\nif ( ! empty( $event-&gt;zoom_join_url ) ) {\n\t$short_zoom_url = implode(\n\t\t&#039;&#039;,\n\t\tarray_intersect_key( wp_parse_url( $event-&gt;zoom_join_url ), array_flip( &#x5B; &#039;host&#039;, &#039;path&#039; ] ) )\n\t);\n}\n?&gt;\n&amp;lt;?php if ( ! tribe_is_past_event() ) : ?&gt;\n&amp;lt;div class=&quot;tribe-events-virtual-single-zoom-details tribe-events-single-section tribe-events-event-meta tribe-clearfix&quot;&gt;\n<\/pre><\/div>\n\n\n<p>Now at the very end, after the last <code>&lt;\/div&gt;<\/code> in the file add this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;?php endif; ?&gt;\n<\/pre><\/div>\n\n\n<p>So the end of the file should look something like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; first-line: 125; highlight: [130]; title: ; notranslate\" title=\"\">\n\t\t\t\t&amp;lt;\/ul&gt;\n\t\t\t&amp;lt;\/div&gt;\n\t\t&amp;lt;\/div&gt;\n\t&amp;lt;?php endif; ?&gt;\n&amp;lt;\/div&gt;\n&amp;lt;?php endif; ?&gt;\n<\/pre><\/div>\n\n\n<p>Save the changes to the file and you should be set.<\/p>\n\n\n\n<p>If you would like to achieve something similar with your embedded video content, then you will need a template override for this file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nwp-content\/plugins\/events-pro\/src\/views\/single\/video-embed.php\n<\/pre><\/div>\n\n\n<p>The file for the &#8220;Watch&#8221; button would be this one:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nwp-content\/plugins\/events-pro\/src\/views\/components\/link-button.php\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Hiding Virtual Event Content After the Event is Over When hosting virtual events, you will have the option to show livestream links (Zoom, webinar, etc.) on the event page. The content of the page is visible from the time of publishing or from the start of the event until the ends of time. If you&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[84],"tags":[25],"stellar-product-taxonomy":[162],"class_list":["post-1947907","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-theming-overview","tag-customizations","stellar-product-taxonomy-virtual-events"],"acf":[],"taxonomy_info":{"category":[{"value":84,"label":"Templating &amp; Layout"}],"post_tag":[{"value":25,"label":"Customizations"}],"stellar-product-taxonomy":[{"value":162,"label":"Virtual Events"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Jaime Marchwinski","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":84,"name":"Templating &amp; Layout","slug":"theming-overview","term_group":0,"term_taxonomy_id":84,"taxonomy":"category","description":"","parent":24,"count":22,"filter":"raw","term_order":"0","cat_ID":84,"category_count":22,"category_description":"","cat_name":"Templating &amp; Layout","category_nicename":"theming-overview","category_parent":24}],"tag_info":[{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":31,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1947907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1947907"}],"version-history":[{"count":11,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1947907\/revisions"}],"predecessor-version":[{"id":1969203,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1947907\/revisions\/1969203"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1947907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1947907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1947907"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1947907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}