WordPress.org

Ready to get started?Download WordPress

Forums

Event Calendar 3 for PHP 5.3
emove timestamp from Widget event listing (4 posts)

  1. eskunk
    Member
    Posted 2 years ago #

    related to this post which is marked "resolved" even though no solutions is presented: http://wordpress.org/support/topic/removing-time-if-it-is-all-day?replies=4

    how is it possible to remove the timestamp from the upcoming events listing of the widget ?

    thanks!

    http://wordpress.org/extend/plugins/event-calendar-3-for-php-53/

  2. visionx
    Member
    Posted 2 years ago #

    in template-functions.php, I commented out the following:

    if($entry->allday)
    $data['TIME']=__('all day','ec3');
    else
    $data['TIME']=mysql2date($time_format,$entry->start);

    then I added this immediately after the code I commented:

    $data['TIME']='';

    This removed the date, but it still shows () after the post, still looking for those so I can remove them.

  3. visionx
    Member
    Posted 2 years ago #

    to remove the () and time, ignore the post above and just change this line in template-functions.php:

    from:

    define('EC3_DEFAULT_TEMPLATE_EVENT','%TITLE% (%TIME%)');

    to:

    define('EC3_DEFAULT_TEMPLATE_EVENT','%TITLE%');

    Fernando

  4. skino
    Member
    Posted 1 year ago #

    Go to 493 line:
    $time_format=get_option('time_format');
    and comment it:
    //$time_format=get_option('time_format');
    for me work this one!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic