Home › Forums › Calendar Products › Events Calendar PRO › Open Calendar events in new tab
- This topic has 5 replies, 2 voices, and was last updated 6 years, 11 months ago by johnpokeefe.
-
AuthorPosts
-
March 10, 2017 at 3:15 am #1252251johnpokeefeParticipant
HI,
I am using The Events Calendar Pro and have a problem when site visitors click on an event in the calendar (in month view) for a selected (future) month. The event opens in the current tab. On returning to the calendar (using the back arrow) it reverts to the initial (current) month.
This is very frustrating for uses exploring events for a particular time period.
The answer – open the event in a new tab.
Visitors can then revisit their chosen month view.
How can I set this up?
I cannot locate a setting for this.Many thanks,
JohnMarch 10, 2017 at 10:31 am #1252516CourtneyMemberHi John
If you’d like to force a new tab when a user clicks on an event from the calendar to view the single event page, I can walk you through that.
1. Create a template override following the Themer’s Guide. You’ll want to copy the file
/wp-content/plugins/the-events-calendar/src/views/month/single-event.php
to a folder /your-theme/tribe-events/month/single-event.php
2. Modify the code on line 196 to add target=”_blank” to the link, as shown below:
" class="url" target="_blank">
3. Save and test
Let me know if this works for you ๐
Thanks,
CourtneyMarch 25, 2017 at 1:56 am #1259918johnpokeefeParticipantHi Courtney,
Apologies for being slow to get back to you.
The modification works just fine.
Thank you.Right now I appear to have lost the Google Maps capability when I add a new venue – but that could well be another matter entirely!
March 27, 2017 at 8:31 am #1260388CourtneyMemberThanks for the update John ๐
Google Maps – Could you double check your settings in Events ยป Settings ยป General ยป Maps? Then also check that you have the API key entered just once under the API tab in the same location.
It is worth noting, some themes want the API key as well. Having it in 2 locations can cause an error.
Let me know if any of that helps.
Thanks,
Courtney ๐April 18, 2017 at 9:35 am #1271176Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Open Calendar events in new tab’ is closed to new replies.