Home › Forums › Calendar Products › Events Calendar PRO › Link each event in calendar to a custom page instead of default event page
- This topic has 8 replies, 2 voices, and was last updated 11 years, 1 month ago by
Geoff.
-
AuthorPosts
-
March 11, 2015 at 4:30 am #947518
everlearn
ParticipantHi,
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,
RobMarch 11, 2015 at 8:50 am #947615Geoff
MemberHi 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!
GeoffMarch 11, 2015 at 8:58 am #947623everlearn
ParticipantHi 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.
March 11, 2015 at 9:09 am #947626Geoff
MemberSure 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!
GeoffMarch 12, 2015 at 5:34 am #947855everlearn
ParticipantHi 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,
RobMarch 12, 2015 at 5:35 am #947856everlearn
ParticipantOh, one more … sorry 🙂
Which 3rd-party plug-in would you recommend if I’d like to go that route?
Thanks,
RobMarch 12, 2015 at 8:22 am #947889Geoff
MemberHey 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!
GeoffMarch 12, 2015 at 8:55 am #947901everlearn
ParticipantThanks Geoff.
That should get me started!
Kind Regards,
Rob
March 12, 2015 at 10:18 am #947926Geoff
MemberAwesome! 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 -
AuthorPosts
- The topic ‘Link each event in calendar to a custom page instead of default event page’ is closed to new replies.
