Hiding Date Metadata in Single Event View

Home Forums Calendar Products Events Calendar PRO Hiding Date Metadata in Single Event View

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1295612
    Aein
    Participant

    I am trying to hide the “Date” part in single event view.

    I have copied over
    modules/meta.php — Used within single-event.php to display meta information for an event
    modules/meta/details.php — Adds information such as the start and end time within the meta section

    to my theme/tribe-events/modules/meta

    I tried commenting this out in details.php

    <!--		<?php
    		// All day (single day) events
    		elseif ( tribe_event_is_all_day() ):
    			?>
    
     			<dt> <?php esc_html_e( 'Date:', 'the-events-calendar' ) ?> </dt>
    			<dd>
    				<abbr class="tribe-events-abbr tribe-events-start-datetime published dtstart" title="<?php esc_attr_e( $start_ts ) ?>"> <?php esc_html_e( $start_date ) ?> </abbr>
    			</dd> -->

    but it didn’t remove the date.

    Do you have any advice for me?

    Thank you.

    #1296306
    Jennifer
    Keymaster

    Hi Aein,

    I’d be happy to help you with this. It looks like you’ve copied over the right file (modules/meta/details.php), but you are editing the code for an all-day event. For events that only occur during a certain time in a day like in your screenshot, look for the // Single day events comment, and in that section, you can remove this:

    <dt> <?php esc_html_e( 'Date:', 'the-events-calendar' ) ?> </dt>
    <dd>
    <abbr class="tribe-events-abbr tribe-events-start-date published dtstart" title="<?php esc_attr_e( $start_ts ) ?>"> <?php esc_html_e( $start_date ) ?> </abbr>
    </dd>

    Let me know if that works for you!

    Thanks,

    Jennifer

    #1315305
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hiding Date Metadata in Single Event View’ is closed to new replies.