Changes in widget-admin-advanced-list.php

Home Forums Calendar Products Events Calendar PRO Changes in widget-admin-advanced-list.php

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1098236
    pheck
    Participant

    Hello,

    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

    #1098252
    Brian
    Member

    Hi,

    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

    #1098319
    pheck
    Participant

    Hello 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

    #1098324
    Brian
    Member

    The 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

    #1098353
    pheck
    Participant

    Hello 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

    #1098418
    pheck
    Participant

    See 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.
    #1098478
    Brian
    Member

    Great, 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!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Changes in widget-admin-advanced-list.php’ is closed to new replies.