Change of Widget Display Format

Home Forums Calendar Products Events Calendar PRO Change of Widget Display Format

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #68220
    woodraf
    Participant

    Hi!
    I want to change default display format of events in sidebar widget (PRO version).

    I’m interesting in this kind of format:
    Event Name – DD-MM-YYYY (City)

    DD-MM-YYYY – is the date of start of event, without start hour (everything in the single line)

    What should I fix to make widget visible in this kind of format?

    #68296
    Barry
    Member

    Do you wish to strictly limit this change to the widget, or is this the general format you want to use?

    #68311
    woodraf
    Participant

    Just widget nothing more.

    #68320
    Barry
    Member

    OK, so if you take a look at our Themer’s Guide you will find instructions on overriding and customizing our templates. In this case, you are probably going to be interested in adapting the widgets/list-widget.php template.

    The line responsible for generating the ‘schedule details’ is:

    <?php echo tribe_events_event_schedule_details(); ?>

    It’s output can be filtered; but since the same function is used from other templates it may be better in this case to simply remove it from widgets/list-widget.php and drop in a replacement function of your own.

    Hope that helps!

    #70169
    woodraf
    Participant

    Where can I found this function and how can I clone it?

    #70298
    Barry
    Member

    The original function definition (if you want to use it as a reference for your own) can be found in public/template-tags/general.php. Hope that helps – and I’ll go ahead and close out this thread. Cheers!

    #981378
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Change of Widget Display Format’ is closed to new replies.