Link each event in calendar to a custom page instead of default event page

Home Forums Calendar Products Events Calendar PRO Link each event in calendar to a custom page instead of default event page

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #947518
    everlearn
    Participant

    Hi,

    Is it possible to have an event in a calendar (we’re using the photo-view) link directly to a custom page? So instead of going to the default event page? I would like to have a calendar item in the photo-view go directly to a product page.

    Thanks in advance for your advise.

    Kind Regards,
    Rob

    #947615
    Geoff
    Member

    Hi there, Rob! Thanks for getting in touch.

    There are a couple of ways I think you could go about tackling this.

    One way is to use a third-party plugin to redirect your event links to a product.

    Another way is to override the calendar template and modify it so the links target your products instead. This route is quite a bit trickier, for sure.

    I wish we had something that helped support this for you right out of the box, but I’m afraid that’s not possible at the moment. If this is a feature you’d like us to consider, I’d suggest posting it to our UserVoice page, where we take new feature requests.

    Cheers!
    Geoff

    #947623
    everlearn
    Participant

    Hi Geoff,

    Thanks for your reponse.

    Would you mind guiding me slightly in the right direction? Which template would I need to change for the photo wall calendar and could I store the link to my custom page within an Extra field in an event when I create it?

    I know how to retrieve the link from the $event or $post whichever you call it and then echo that inside the loop for each event.

    Thanks again for your help.

    #947626
    Geoff
    Member

    Sure thing! the template you’re looking for is located in: /plugins/events-calendar-pro/views/pro/photo/single-event.php.

    Copy that file, then:

    • Create a new folder in your theme files call tribe-events
    • Create another folder in that one called pro
    • Create yet another folder in that one called photo
    • Drop in your copied file and modify it

    These steps are more thoroughly outlined in our Themer’s Guide, which I definitely suggest checking out. 🙂

    Cheers!
    Geoff

    #947855
    everlearn
    Participant

    Hi Geoff,

    Thanks for your step-by-step guide.

    Just one more question so I understand it correctly. With the single-event template, wouldn’t I then be editing how the single-event information displays, so what one sees after clicking on an item in the calendar? Shouldn’t I be changing that what the file ‘loop.php’ is referring to?

    Because what I want to achieve is that a person is redirected to a different page instead of the default event page when he / she clicks an item in the calendar.

    Thanks again for your help.

    Kind Regards,
    Rob

    #947856
    everlearn
    Participant

    Oh, one more … sorry 🙂

    Which 3rd-party plug-in would you recommend if I’d like to go that route?

    Thanks,
    Rob

    #947889
    Geoff
    Member

    Hey there, Rob! Thanks for following up.

    Yeah, single-event.php will be the correct template. The loop.php template sets the looped content up and single-event.php actually holds the content inside the loop.

    I don’t have a third-party plugin off the top of my head, but here’s a search to get you started. I think the important thing is to choose one that is compatible with custom post types, which is what events are. Most should support that anyway though. 🙂

    Cheers!
    Geoff

    #947901
    everlearn
    Participant

    Thanks Geoff.

    That should get me started!

    Kind Regards,

    Rob

    #947926
    Geoff
    Member

    Awesome! I’m glad that helps–thanks for following up and letting me know. 🙂

    I’ll go ahead and close this thread, but feel free to hit us up with a new one of any other questions pop up–we’d be happy to help.

    Cheers!
    Geoff

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Link each event in calendar to a custom page instead of default event page’ is closed to new replies.