Home › Forums › Calendar Products › Events Calendar PRO › Remove Posted by and Comments Off
- This topic has 13 replies, 2 voices, and was last updated 13 years, 2 months ago by
Barry.
-
AuthorPosts
-
December 20, 2012 at 1:04 pm #29866
Courtney
ParticipantIs there anyway to remove “posted by admin…comments off” at the top of an event?
December 20, 2012 at 2:13 pm #29875Barry
MemberHi 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?
December 28, 2012 at 9:57 am #30072Courtney
Participanthttp://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.
December 28, 2012 at 10:42 am #30077Barry
MemberIf 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?
January 9, 2013 at 10:20 am #30500Courtney
ParticipantIt 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!
January 14, 2013 at 8:41 am #30762Barry
MemberHi 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?
January 14, 2013 at 8:42 am #30764Barry
MemberHere’s those lines of code again in case it’s easier: http://pastebin.com/MTc23GHZ
January 21, 2013 at 1:35 pm #31302Courtney
ParticipantI 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.
January 21, 2013 at 1:48 pm #31303Courtney
ParticipantEven if i could just change the background on the default that would be great.
http://creativelyaffordablemarketing.com/mtcarmel/events/month/January 21, 2013 at 3:52 pm #31323Barry
MemberI 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.
January 21, 2013 at 3:59 pm #31325Courtney
Participanthttps://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.
January 22, 2013 at 2:33 pm #31399Barry
MemberDoh! 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.
February 4, 2013 at 10:22 am #32079Courtney
ParticipantOk 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.
February 4, 2013 at 10:33 am #32080Barry
MemberOK, 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.)
-
AuthorPosts
- The topic ‘Remove Posted by and Comments Off’ is closed to new replies.
