Forum Replies Created
-
AuthorPosts
-
Sören
ParticipantYes! Thanks 🙂
Sören
ParticipantHi George,
it works but then the name without the links appears on the top of the page:
<body class="single single-tribe_events postid-1032 tm-isblog tm-article-blog wp-tribe_events-single tm-navbar-bg tribe-bar-is-disabled tribe-theme-yoo_helios_wp tribe-events-page-template tribe-is-responsive">HÄKKEN – Bar + BühneSeptember 21, 2015 at 12:20 pm in reply to: Change Number of events to show in event list widget pro #1007189Sören
ParticipantA friend of me helped me, here is the solution:
add_filter('widget_display_callback', 'increase_event_widget_limit', 10, 2); /** * Test if the current widget is an Advanced List Widget and fix the event limit if it is. */ function increase_event_widget_limit($instance, $widget) { if (is_a($widget, 'Tribe__Events__Pro__Advanced_List_Widget')) if($instance['limit']==10) $instance['limit'] = 500; return $instance; }September 19, 2015 at 5:43 am in reply to: Change Number of events to show in event list widget pro #1006756Sören
ParticipantI think that would work for me, but i have no idea how to modify the snippet :/
September 17, 2015 at 10:50 pm in reply to: Change Number of events to show in event list widget pro #1006325Sören
ParticipantOkay, i thinks this is not possible to me. If you create the widget, you have 10 values: 1 – 10. Where do they come from and is it possible to manipulate them? Maybee you see the value 10 but it shows 30?
September 16, 2015 at 2:05 pm in reply to: Change Number of events to show in event list widget pro #1005773Sören
ParticipantOkay, it works but i use the widget two times – it’s a one page layout:/
So in the first widget i want to show only the next one and in the second i want to show all events. If i use your code, both widgets are showing 30 events. Hope you have an idea 🙁September 16, 2015 at 10:20 am in reply to: Change Number of events to show in event list widget pro #1005650Sören
ParticipantYes, i see that in there but there is no value to change:
<?php /** * @package Helios * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ // check compatibility if (version_compare(PHP_VERSION, '5.3', '>=')) { // bootstrap warp require(__DIR__.'/warp.php'); }September 16, 2015 at 9:21 am in reply to: Change Number of events to show in event list widget pro #1005632Sören
ParticipantHi Geoff,
your post is different from my mail i get:
Geoff wrote:
Hey @ and welcome back!
Yeah, that can be a little frustrating, can’t it? Try adding this snippet to your theme (or preferably child theme) functions.php file and see if that does the trick. It may not necessarily show the number in the widget settings, but the filter should impact the number of events in the widget itself.
You can change the value in there from “30” to any number. 🙂
Cheers!
GeoffWhere is he funktions.php file?
Thansk for your answer 🙂
Sören
ParticipantOkay thanks, this worked for me:
<?php if($count<=1) { ?> <p class="tribe-events-widget-link"> <a href="/#programm" rel="bookmark"> <?php esc_html_e( 'View More…', 'tribe-events-calendar-pro' ) ?> </a> </p> <?php } ?>Sören
ParticipantIt works out! Thank you very much.
Sören
ParticipantHey Geoff – great! thanks! works!
One last question i hope, if i click on show more in the widget the following page is the a list view of all events. Witch file should i copy in which folder to make the override? I want the additional field in the list view page too.
-
AuthorPosts
