Add day to single event page

Home Forums Calendar Products Events Calendar PRO Add day to single event page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1355193
    Sarah Lewis-Hammond
    Participant

    Hello. On my individual events pages I get the event title followed by the date and time. The date display shows the date and month, e.g. 21 October, but I’d like it to say the day, date and month, e.g. Saturday 21 October. How can I do this please?

    #1355205
    Sarah Lewis-Hammond
    Participant

    Oh fixed it myself. I’ve added the following into single-event.php, which includes day date month, time on a separate line, and a book now button

    	<div class="tribe-events-schedule tribe-clearfix">
    		<h2><?php echo tribe_get_start_date ( null, false, 'l j F' ) ?></h2>
    		<h2><?php echo tribe_get_start_time(); ?> - <?php echo tribe_get_end_time(); ?></h2>
    		<?php if ( tribe_get_cost() ) : ?>
    			<h2><span class="tribe-events-cost"><?php echo tribe_get_cost( null, true ) ?></span></h2>
    		<?php endif; ?>
    		<div class="button photo-view-button"><a class="tribe-event-url" href="<?php echo esc_url( tribe_get_event_link() ); echo "?tickets_process=#buy-tickets" ?>" title="<?php the_title() ?>" rel="bookmark">book now</a></div> 
    	</div>
    #1355271
    Courtney
    Member

    Hi Sarah

    Congrats! I’m glad that worked. Do let us know if you run into any other issues.

    Thanks
    Courtney 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add day to single event page’ is closed to new replies.