Remove Posted by and Comments Off

Home Forums Calendar Products Events Calendar PRO Remove Posted by and Comments Off

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #29866
    Courtney
    Participant

    Is there anyway to remove “posted by admin…comments off” at the top of an event?

    #29875
    Barry
    Member

    Hi Courtney, sounds like something that is specific to your theme. Can you share a link / have you touched base with the theme author to ask their advice here?

    #30072
    Courtney
    Participant

    http://creativelyaffordablemarketing.com/mtcarmel/event/primadomenica-2/2013-01-06/

    Here’s an example. I can’t figure out how to get rid of that top part. I can modify it but I can’t delete it.

    #30077
    Barry
    Member

    If you can pin down the bit of code that creates it you could hide it conditionally using something like:

    if (!tribe_is_event($id)) { /* Print the text */ }

    You’d need to figure out the post ID first of all and pass that in as $id. You can access the $post global this way:

    global $post;

    And then do:

    $id = $post->ID;

    Does that help/are you comfortable with that sort of change?

    #30500
    Courtney
    Participant

    It was a theme issue! Got that figured out. Wonder if you could help me figure out how to get rid of “updated by” and the “schedule” with the recurring bit? Thanks!

    #30762
    Barry
    Member

    Hi Courtney.

    Please check out our tutorial on template overrides if you haven’t done so already: https://theeventscalendar.com/what-are-template-overrides-and-how-do-i-do-them/

    In your custom list.php template, locate and try removing the following lines:

    <dt class="event-label event-label-updated"><?php _e('Updated:', 'tribe-events-calendar'); ?></dt>
    <dd class="event-meta event-meta-updated"><span class="date updated"><?php the_date(); ?></span></dd>
    <?php if ( class_exists('TribeEventsRecurrenceMeta') && function_exists('tribe_get_recurrence_text') && tribe_is_recurring_event() ) : ?>
    <dt class="event-label event-label-schedule"><?php _e('Schedule:', 'tribe-events-calendar'); ?></dt>
    <dd class="event-meta event-meta-schedule"><?php echo tribe_get_recurrence_text(); ?>
    <?php if( class_exists('TribeEventsRecurrenceMeta') && function_exists('tribe_all_occurences_link')): ?>(<a href='<?php tribe_all_occurences_link(); ?>'>See all</a>)<?php endif; ?>
    </dd>
    <?php endif; ?>

    Does that work for you?

    #30764
    Barry
    Member

    Here’s those lines of code again in case it’s easier: http://pastebin.com/MTc23GHZ

    #31302
    Courtney
    Participant

    I can’t find that code in list.php. Am I looking in the wrong place? I didn’t do the overrides just edited the original files. Thanks.

    #31303
    Courtney
    Participant

    Even if i could just change the background on the default that would be great.
    http://creativelyaffordablemarketing.com/mtcarmel/events/month/

    #31323
    Barry
    Member

    I can’t find that code in list.php. I didn’t do the overrides just edited the original files.

    We can’t force you to use template overrides but we highly recommend it. Can you show me the contents of your list.php template (using a service such as Gist or Pastebin)?

    Even if i could just change the background on the default that would be great.

    It would be super-appreciated if you could post separate problems in separate threads … makes it a lot less confusing and it also makes it easier for others to find answers to the same question.

    #31325
    Courtney
    Participant

    https://gist.github.com/4590721

    I added the “change the background on the default template” because i thought that might be an easier fix. Thanks so much Barry.

    #31399
    Barry
    Member

    Doh! Sorry for the mixup, I was actually thinking of the single event template (which will be used for pages like this one) … so single.php rather than list.php is the template to adjust.

    #32079
    Courtney
    Participant

    Ok so I made the changes to the single.php and I’m still getting the current event at the top of the calendar in the full-width page view.
    http://creativelyaffordablemarketing.com/mtcarmel/events/

    I’d like it to say “Calendar” or “Events” not pull the event.

    #32080
    Barry
    Member

    OK, so that’s a quite separate problem (from hiding the updated/scheduled fields) – can I ask you to create a new thread for this? Otherwise it will become quite confusing here.

    Thanks! (I’ll now close this thread.)

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Remove Posted by and Comments Off’ is closed to new replies.