Disable link to individual event page on calendar

Home Forums Calendar Products Events Calendar PRO Disable link to individual event page on calendar

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1384806
    Brian Petruzzi
    Participant

    I would like to disable the functionality to have individual pages for events. I just want the hover effect. I don’t want to be able to click on the event and it takes me off the calendar to that events actual page. Is there a way to do this?

    #1386069
    Jennifer
    Keymaster

    Hi Brian,

    You could remove the links to the individual event pages on the front end calendar views by editing the templates for those views (instructions for that here). Look for the tribe_get_event_link function in those files (the ones you’ve copied into your child theme as described in the instructions) to find where the link is being set.

    I hope that helps get you started, and please let me know if you have any questions!

    Thanks,

    Jennifer

    #1387433
    Brian Petruzzi
    Participant

    I don’t see the tribe_get_event_link in the grid.php file for the monthly calendar view?

    #1387734
    Jennifer
    Keymaster

    Hi Brian,

    For month view, take a look at wp-content/plugins/the-events-calendar/src/views/month/single-event.php. The link is a little bit different for this view, but you can find it on line 196:

    " class="url">

    #1403584
    Brian Petruzzi
    Participant

    Thank you! That worked quite nicely!

    #1403938
    Jennifer
    Keymaster

    Perfect! Since this thread has been marked “resolved”, I’ll go ahead and close it out. Please feel free to open up a new one if you have any further questions!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Disable link to individual event page on calendar’ is closed to new replies.