Home › Forums › Calendar Products › Events Calendar PRO › Remove Venue Link
- This topic has 15 replies, 7 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
July 20, 2013 at 1:24 pm #56225Jonathan GoldfordParticipant
I’d like to remove links to the venue from tribe_get_meta_group( ‘tribe_event_venue’ ). If possible, we don’t want to have pages for each venue at all. What do you think is the best way to achieve this?
Thank you.
Jonathan
July 23, 2013 at 1:09 pm #56628JonahParticipantHi wiredimpact,
Unfortunately I don’t know the answer to this one either and am going to need to check in with a developer. Stay tuned for an update.
– Jonah
July 25, 2013 at 1:42 pm #57197Jonathan GoldfordParticipantHi Jonah,
Has there been any update with this?
Thanks,
Jonathan
July 25, 2013 at 2:20 pm #57213JonahParticipantHi Jonathan,
No update yet, I just pinged the developer assigned to the ticket so hopefully will have an answer soon. Sorry for the delay.
– Jonah
July 26, 2013 at 6:17 am #57309Jonathan GoldfordParticipantThanks Jonah. Any idea on when I’ll hear back. The site is due to a client soon, so we’re trying to get everything finished up.
Jonathan
July 26, 2013 at 7:26 am #57319snortonParticipantCould you utilize jQuery to disable those links? This targets the organizer link on a single event’s page, but can be probably be expanded further. You can add this code to a script tag in the Advanced Template Settings ‘Before HTML’ text editor for Events Calendar (found on the Display tab from Events Calendar Settings)
jQuery(“.fn.org”).click(function(e) {
e.preventDefault();
});July 26, 2013 at 9:43 am #57335Timothy WoodParticipantHey Jonathan,
If I understand you correctly, you are just trying to remove the links TO the venue pages not necessarily change how a venue page works? The reason I ask is because this gist (add the code to your functions.php) https://gist.github.com/codearachnid/6090349 will remove the autolinking of the venue name to the venue page when the PRO plugin is enabled. However, it will not disable the venue’s page so if somehow magically someone has a direct link to it they will still see the page. In order for that type of action to occur we would need to tap into detecting when the post type is loaded and preventing front end permalinks. Which is doable just would require more integration on your part.Cheers,
TimJuly 26, 2013 at 9:46 am #57336Timothy WoodParticipantsnorton, that is an interesting idea. My concern is that A) it doesn’t actually remove the link – just changes the event action thus if someone has JavaScript disabled or worse a search engine crawls the page it will still have a functional link. My proposed gist would remove the link functionality that we in the PRO plugin thus keeping the venue name without the link.
July 28, 2013 at 9:41 am #57477Jonathan GoldfordParticipantThanks a lot Tim. I used the function you provided to remove the link. I plan to block Venue pages from search engines so I’m not that worried about those pages still existing. Removing the link to venues should do the trick.
Jonathan
July 28, 2013 at 10:10 am #57480Jonathan GoldfordParticipantOne more question Tim. If I wanted to remove the headings at the top that say “Details” and “Venue” how do I go about doing that? Sorry to bombard you with questions, but I’m having a lot of trouble walking through the code and I didn’t see any editable templates for the event meta.
Jonathan
July 29, 2013 at 10:27 am #57565RobMemberAwesome to hear that got you sorted, wiredimpact! I’m not sure Tim saw your follow-up question (we’ve been a bit shorthanded this week due to a bunch of the crew being at WCSF), but I’ve asked him to take another look just now. Expect a reply shortly and thanks for your patience so far.
July 29, 2013 at 11:06 am #57577Timothy WoodParticipantHey Jonathan,
I apologize I missed your follow up post. It should be pretty easy to update your group labels using similar logic as updating labels for meta items. Just make sure you set the right ID for the meta group item and that you specify that you’re looking for a meta_group item vs default meta. So it’d be like this: `tribe_set_meta_label( ‘tribe_event_venue’, ‘Your custom label’, ‘meta_group’ );` So if you drop that little bit alongside the other label definitions then it should change it all at the same time.Cheers,
TimJuly 30, 2013 at 8:22 am #57764Jonathan GoldfordParticipantHey Tim,
That worked. Thanks a lot for the help.
Jonathan
July 30, 2013 at 10:11 am #57794fenocoParticipantGreat thread, thanks for the info!
I managed to remove the link from the organizer too, but was unable to do the same for the category link. Any idea on how to do this?
I’ve tried using:
remove_filter( ‘tribe_meta_event_category_name’, array(‘Tribe_Register_Meta’, ‘event_category’), 10, 2);But had no luck.
Thanks for the help!
July 31, 2013 at 8:27 am #57991RobMemberExcellent to hear that got you sorted, Jonathan! Thanks for confirming as much.
Fenoco: we can totally help you out here. But would you mind creating a new thread, so Tim (or whichever dev hits it first) can get you a reply in as timely a fashion as possible? Thanks in advance!
-
AuthorPosts
- The topic ‘Remove Venue Link’ is closed to new replies.