Disable links on Single Event Page

Home Forums Calendar Products Events Calendar PRO Disable links on Single Event Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #118035
    Lars
    Participant

    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.png

    Is there a snippet for this otherwise which file would we have to edit and where?

    #118109
    Barry
    Member

    Hi 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?

    #118161
    Lars
    Participant

    Hi 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.

    #118384
    Barry
    Member

    OK, 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 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Disable links on Single Event Page’ is closed to new replies.