View "list" without links to single view

Home Forums Calendar Products Events Calendar PRO View "list" without links to single view

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1367185
    Lars Theiss
    Participant

    Hi,

    I try to find out how to use the list view without any link to a single view of the event.
    There are no information which are placed in the single view, so for me it will be enough to have only a list of the events.
    For this I placed a shortcode “[tribe_events view=”list” tribe-bar=”false” featured=false]” but I cannot find the place to delete all the links! Please tell me the way to realize this.
    Furthermore, I would like to bring the field “link” (it is shown in the single view) to the list view. How this is possible?

    Thanks in advance.

    #1367974
    Andras
    Keymaster

    Hey Lars,

    Thanks for going Pro and welcome to the forums!

    Great question there, I can help you with this one.

    I believe the best approach would be creating a template override for the list view. You can read more about template overrides in our Themer’s Guide.

    To get you started, you will need to override this file:

    \wp-content\plugins\the-events-calendar\src\views\list\single-event.php

    Line 33-35 contains the code you will need to adjust.

    I would like to bring the field “link”

    If you are referring to the “Event Website URL”, then you can get it with this function:

    tribe_get_event_website_link();

    Hope this helps you to get started. Let me know if I can be of further assistance!

    Cheers,
    Andras

    #1380250
    Lars Theiss
    Participant

    Hi,

    after a longer offline time I try to find a way to realize to place the events without any links in the list-view.
    Because of your replay I realized to delete the link of the title, the date and also the “further information” link.
    But I do not find a way to delete the link of the event-location. I do not see how the link is generated in the file “sigle-event.php”.
    Please give me your support once again and explain how to deactivate the link-address of the event-location.
    For a better understanding a will give you the URL of the event-website (sorry, it is in German): http://oliver.h2osports.de/termine-2/

    Thanks!

    #1381256
    Andras
    Keymaster

    Hallo Lars,

    Kein Problem, ich spreche ein bischen Deutsch. 😉

    If you copy this snippet into your active theme’s functions.php file, that will remove the links from the venue name and the organizer name:

    https://gist.github.com/cliffordp/0d5718a259c0cf09df6c07dd1b9607eb

    Let me know how that works out.

    Cheers,
    Andras

    #1381261
    Andras
    Keymaster

    This reply is private.

    #1398669
    Support Droid
    Keymaster

    Hey 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘View "list" without links to single view’ is closed to new replies.