Link event title to event URL is Month view

Home Forums Calendar Products Events Calendar PRO Link event title to event URL is Month view

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #936385
    localbysocial
    Participant

    Hi guys,

    I found a great tutorial on how to link the event title to the event URL in List view (https://theeventscalendar.com/support/forums/topic/link-in-the-list-of-events-below-the-mini-calendar-widget/).

    Is it possible to achieve the same for the Month view?

    -Laurie

    #936605
    Brook
    Participant

    That should definitely be possible. This snippet sounds like what you are looking for. It should change the link throughout your calendar. If an event has the Event URL set, then clicking on the event will take you to the Event URL. If it is not set, then it will take you to the Tribe Events Page.

    http://pastebin.com/m6E43pvc

     

    Did that work? Is that what you wanted?

    Cheers!

    – Brook

     

    #936886
    localbysocial
    Participant

    Thanks for prompt response.

    In which file do I paste the code you’ve sent?

    -Laurie

    #937924
    Brook
    Participant

    Oh good question. It can go inside of your theme’s functions.php file. I usually paste it at the very top of the file, just under the opening <?php line.

    Does that make sense? Did the snippet work?

    Cheers!

    – Brook

    #939286
    localbysocial
    Participant

    Super! That worked brilliantly on desktop.

    Now…to extend this further, how can we the same thing to happen when you click on link on a tablet or smartphone?

    -Laurie

    #939639
    Brook
    Participant

    Howdy Laurie,

    That snippet actually should work both for the desktop and smartphone. It does not matter what device you are viewing from, if there is a URL in “Event URL” field for an event, then clicking on a link to that event anywhere from the customer side of your site should link to the Event URL, not the event itself. Are you experiencing something different? If so can you describe what that is, and possible link to the page in question. Or maybe I misunderstood your question.

    Let me know how I can help. Cheers!

    – Brook

    #953635
    Brook
    Participant

    Since this topic has gone for a while without a response we are archiving it. If you need further assistance though with this issue, please open a new topic. We would love to help.

    Cheers!

    – Brook

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Link event title to event URL is Month view’ is closed to new replies.