Home › Forums › Calendar Products › Events Calendar PRO › Changes in widget-admin-advanced-list.php
- This topic has 6 replies, 2 voices, and was last updated 10 years ago by
Brian.
-
AuthorPosts
-
April 5, 2016 at 3:38 am #1098236
pheck
ParticipantHello,
need to use the widget in my theme to display the event list. Unfortunately, per default the list widget is limited to 10 entries. I can now change it on //src/admin-views/widget-admin-advanced-list.php in line 19 and it works out fine.
But I want to follow the themer’s guide and copy the file to the /tribe-events/ folder within my theme – but couldn’t find a location where it works.
Anyone who can help me finding the right placement for the file?
Cheers Peter
April 5, 2016 at 5:01 am #1098252Brian
MemberHi,
Thanks for using our plugins. I can help out here.
We have this guide to changing that limit instead of modifying code:
https://theeventscalendar.com/knowledgebase/show-more-than-ten-events-in-advanced-list-widget/
Only files in the /src/views/ directory are able to be moved to the theme to edit.
The rest all use the plugin copy only.
Let me know if you have any follow up questions.
Thanks
April 5, 2016 at 8:13 am #1098319pheck
ParticipantHello Brian,
thanks for the hint – anyway, this will not work as my theme directory is named with the theme version and changes with each update. So I can chose to change the widget php file on each update of the plugin or the child theme configuration each time the theme update happens (also quite often).
By the way – I couldn’t find the snippet code itself on the page (neither a code or a download link).
Cheers Peter
April 5, 2016 at 8:25 am #1098324Brian
MemberThe code was at the bottom.
Here is a direct link.
https://gist.github.com/theeventscalendar/40ed60514430907044a4#file-event_limit_list_widget-txt
You could put it in a custom plugin.
Following this guide you can create the base of a plugin and then add that snippet instead of their coding:
https://www.elegantthemes.com/blog/tips-tricks/how-to-create-a-wordpress-plugin
Cheers
April 5, 2016 at 9:06 am #1098353pheck
ParticipantHello Brian,
thanks for the idea with the custom plugin. Regarding the code – maybe I am blind, but I can’t see the code. Also no link in your previous post.
Cheers Peter
April 5, 2016 at 9:44 am #1098418pheck
ParticipantSee now that in the E-Mail the Link is in (it’s not shown in the web reply) – thanks!
-
This reply was modified 10 years ago by
pheck.
April 5, 2016 at 10:59 am #1098478Brian
MemberGreat, glad it helps, I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.
Thanks!
-
This reply was modified 10 years ago by
-
AuthorPosts
- The topic ‘Changes in widget-admin-advanced-list.php’ is closed to new replies.
