Home › Forums › Calendar Products › Events Calendar PRO › Clicking event title link on the Upcoming Events Page
- This topic has 9 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
September 9, 2012 at 11:59 am #24727
Bonnie
MemberIf you click an event title, it opens a page with all the details about the event and below that is what looks like a site map of the site. How do I get rid of all of that OR can you disable the event title link on the Upcoming Events page? We don’t need that level of detail on our site. Thanks.
September 12, 2012 at 7:34 am #24895Jonah
ParticipantHi Bonnie,
You could easily disable the link by doing a template override on the list view. Simply make a copy of /wp-content/plugins/the-events-calendar/views/list.php and place in an ‘events’ folder in your theme and then open that up in a code editor. Then, find line 40 and change it to: https://www.sourcedrop.net/82F09d4440b3f
I hope that helps but let me know if you need anything else!
– Jonah
September 12, 2012 at 8:48 am #24921Bonnie
MemberI’ve already modified my list.php as a result of several questions I’ve posted. Line 40 doesn’t contain the URL you mentioned. Here is my list.php:
<a class='tribe-events-button-on' href='’>
<a class='tribe-events-button-off' href='’><div id="post-” itemscope itemtype=”http://schema.org/Event”>
‘featured-event-thumb’,
)); ?><?php the_title('‘, ‘‘); ?>
get_event_taxonomy() ) ) {
$cat = get_term_by( ‘slug’, get_query_var(‘term’), $tribe_ecp->get_event_taxonomy() );
if( tribe_is_upcoming() ) {
$is_cat_message = sprintf(__(‘ listed under %s. Check out past events for this category or view the full calendar.’,’tribe-events-calendar’),$cat->name);
} else if( tribe_is_past() ) {
$is_cat_message = sprintf(__(‘ listed under %s. Check out upcoming events for this category or view the full calendar.’,’tribe-events-calendar’),$cat->name);
}
}
?><?php printf( __('No events scheduled for %s. Please try another day.’, ‘tribe-events-calendar’), date_i18n(‘F d, Y’, strtotime(get_query_var(‘eventDate’)))); ?>
<?php previous_posts_link( '’.__(‘« Previous Events’, ‘tribe-events-calendar’).” ); ?>
<a href='’>
<?php next_posts_link( '’.__(‘« Previous Events’, ‘tribe-events-calendar’).” ); ?>
<?php next_posts_link( '’.__(‘Next Events »’, ‘tribe-events-calendar’).” ); ?>
<?php previous_posts_link( '’.__(‘Next Events »’, ‘tribe-events-calendar’).” ); // a little confusing but in ‘past view’ to see newer events you want the previous page ?>
<a href='’>
<a title="” class=”ical” href=””>
September 12, 2012 at 8:50 am #24922Bonnie
MemberDoesn’t look like the list.php pasted correctly. Can I attach a file? or send you a link to the file? Thanks.
September 12, 2012 at 1:14 pm #24939Jonah
ParticipantHi Bonnie, post your list.php file to: http://snippi.com/
Thanks,
JonahSeptember 17, 2012 at 9:30 am #25223Bonnie
MemberHere’s the link: http://snippi.com/s/6ivx9wg
Thanks for your help.September 17, 2012 at 3:55 pm #25242Jonah
ParticipantHi Bonnie, so the change you need to make is to line 59 where the_title() is called. Just replace that line with the code I provided above and you should be good to go.
Let me know if you need anything else.
– Jonah
September 18, 2012 at 8:56 am #25316Bonnie
MemberTook me awhile before I realized that I had to go to the source of the link to get the code. Works just fine now. Thanks.
September 18, 2012 at 9:15 am #25319Jonah
ParticipantHi Bonnie,
Glad you figure it out. Let us know if there’s anything else you need.
– Jonah
July 7, 2015 at 6:26 am #977786Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Clicking event title link on the Upcoming Events Page’ is closed to new replies.
