Clicking event title link on the Upcoming Events Page

Home Forums Calendar Products Events Calendar PRO Clicking event title link on the Upcoming Events Page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #24727
    Bonnie
    Member

    If 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.

    #24895
    Jonah
    Participant

    Hi 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

    #24921
    Bonnie
    Member

    I’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”&gt;

    ‘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=””>

    #24922
    Bonnie
    Member

    Doesn’t look like the list.php pasted correctly. Can I attach a file? or send you a link to the file? Thanks.

    #24939
    Jonah
    Participant

    Hi Bonnie, post your list.php file to: http://snippi.com/

    Thanks,
    Jonah

    #25223
    Bonnie
    Member

    Here’s the link: http://snippi.com/s/6ivx9wg
    Thanks for your help.

    #25242
    Jonah
    Participant

    Hi 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

    #25316
    Bonnie
    Member

    Took 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.

    #25319
    Jonah
    Participant

    Hi Bonnie,

    Glad you figure it out. Let us know if there’s anything else you need.

    – Jonah

    #977786
    Support Droid
    Keymaster

    This 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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Clicking event title link on the Upcoming Events Page’ is closed to new replies.