Home › Forums › Calendar Products › Events Calendar PRO › View "list" without links to single view
- This topic has 6 replies, 2 voices, and was last updated 8 years, 5 months ago by
Lars Theiss.
-
AuthorPosts
-
October 21, 2017 at 9:53 am #1367185
Lars Theiss
ParticipantHi,
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.
October 24, 2017 at 5:08 am #1367974Andras
KeymasterHey 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,
AndrasNovember 10, 2017 at 1:46 pm #1380250Lars Theiss
ParticipantHi,
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!
November 13, 2017 at 1:50 am #1381256Andras
KeymasterHallo 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,
AndrasNovember 13, 2017 at 2:00 am #1381261Andras
KeymasterThis reply is private.
December 5, 2017 at 8:35 am #1398669Support Droid
KeymasterHey 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 ‘View "list" without links to single view’ is closed to new replies.
