event link

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1327623
    Jeffrey Anderson
    Participant

    We have a calendar that shows whether or not a venue is booked on a certain dates. No event details are entered/needed. I’m wondering if we can disable the links on individual events on the month view so that they don’t go to the single event. https://www.maplehurstweddings.com/calendar

    #1328311
    Courtney
    Member

    Hello Jeffrey

    That is certainly possible. You’ll want to take a glance over Themer’s Guide. You’ll be modifying one line of code from wp-content/plugins/the-events-calendar/src/views/month/single-event.php on line 196.

    It normally shows:

    <h3 class="tribe-events-month-event-title"><a href="<?php echo esc_url( $link ) ?>" class="url"><?php echo $title ?></a></h3>

    and you’ll add a copy of that file to wp-content/themes/your-theme/tribe-events/month/

    and modify line 196 to be:

    <h3 class="tribe-events-month-event-title"><?php echo $title ?></h3>

    Can you let me know if this works for you?

    Thanks
    Courtney 🙂

    #1328387
    Jeffrey Anderson
    Participant

    Close! I had to add a “month” folder inside my tribe-events folder. Thanks!

    #1328423
    Courtney
    Member

    ah, thanks Jeffrey. Glad it’s working now 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘event link’ is closed to new replies.