widget list date icon

Home Forums Calendar Products Events Calendar PRO widget list date icon

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1000219
    John Paul
    Participant

    Hi guys …couple of questions

    in the pro widget list I have removed the date icon from display………can I change this for something else? i.e an image..which file do I view to target this?

    also, the widget only allows 10 events to display as a max… I would like to make this more if I can

    many thanks

    #1000447
    Nico
    Member

    Hi John,

    Thanks for reaching out to us!

    You can add an image or icon to the list widget via CSS or you can edit the template files to do so. The CSS snippet would look like this:

    .tribe-events-adv-list-widget > .hentry {
    background-image: url(path_to_image);
    background-repeat: no-repeat;
    padding-left: 20px;
    }

    If you prefer to edit the view files, the main view for the list widget is located at ‘wp-content\plugins\events-calendar-pro\src\views\pro\widgets\list-widget.php’ and it uses the file ‘single-event.php’ in the ‘modules’ subfolder for each event in the list. Be sure to check our Themer’s guide to get the details of how to override these templates.

    Regarding the amount of events shown by the widget, a bit of code is necessary. Just drop the following lines in your theme’s ‘functions.php’ file (located at wp-content/themes/your-theme/):


    add_filter('widget_display_callback', 'increase_event_widget_limit', 10, 2);

    function increase_event_widget_limit(array $instance, $widget) {
    if (is_a($widget, 'Tribe__Events__Pro__Advanced_List_Widget')) {
    $instance['limit'] = 30; // change the amount of events here
    }

    return $instance;
    }

    Please let me know if there’s anything else I can help you with,
    Best,
    Nico

    #1005232
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘widget list date icon’ is closed to new replies.