Home › Forums › Calendar Products › Events Calendar PRO › Disable links on Single Event Page
- This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by Barry.
-
AuthorPosts
-
March 12, 2014 at 4:06 pm #118035LarsParticipant
Hi,
How do we disable linking to any “Event Category” and “Organizer” on the Single Event Page?
https://www.dropbox.com/s/lrxhnyvul8nz7gu/Screenshot%202014-03-13%2000.01.12.pngIs there a snippet for this otherwise which file would we have to edit and where?
March 12, 2014 at 7:38 pm #118109BarryMemberHi mending,
Here’s a snippet that would let you hide the event category entry: http://pastebin.com/zhKHn6sF … if you still want the category to display, but not function as a link, then that would be a little more advanced.
Similarly so for the organizer – however I’m not sure if you are interested in that entire group (organizer name, phone and website) or simply want to remove (or unlink) the organizer name – can you clarify?
We do also have some documentation in relation to the meta walker you might be interested in:
https://tri.be/tribe-meta-walker-an-overview/
Does that help?
March 13, 2014 at 12:37 am #118161LarsParticipantHi Barry,
I simply just would like to unlink the “Event Category” and “Organizer” on the Single Event Page but keep it displaying. The reason for this is that ECP cannot be set to show a specific week of events (in October) and it only works realtime (!). We managed to customize this by using a Redirection plugin redirecting /events to /events/week/2014-10-06/ but when clicking the “Event Category” link on the Single Event Page this all falls apart as “categories” are used in the URL.March 13, 2014 at 10:53 am #118384BarryMemberOK, so there are actually a couple of hooks – filters – you could use for that purpose:
- tribe_event_meta_organizer_name
- tribe_event_meta_event_category
You’d just need to write a little code to strip out the HTML tags that form them into links. There are a few other approaches you could take – please see the meta walker guide I linked to previously – but this a fairly straightforward approach.
Good luck 🙂
-
AuthorPosts
- The topic ‘Disable links on Single Event Page’ is closed to new replies.