Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #877871

    Hi,

    how can I remove the time (but not the date) from the Enfold Latest News Widget?

    With
    .news-time { display: none; }
    time and date is removed, but I want to keep the date.

    BR
    Florian

    #878513

    Hey catchbudapest,

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #883270

    Hey Rikard,

    sorry for the late reply.
    See for example the recent posts in the sidebar at http://www.catchbudapest.com/life/

    BR
    Florian

    #883536

    Hi Florian,

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avia_widget_time', 'change_avia_date_format', 10, 2);
    function change_avia_date_format($date, $function) {
      return false;
    }

    Best regards,
    Yigit

    #883809

    Hi Yigit,

    with this code time and date is removed, but I want to keep the date (and just remove the time).

    BR
    Florian

    #884735

    Hi,

    Sorry Florian! Please change the code to following one

    add_filter('avia_widget_time', 'change_avia_date_format', 10, 2);
    function change_avia_date_format($date, $time_format) {
      $time_format = get_option('date_format');
      return $time_format;
    }

    Best regards,
    Yigit

    #884763

    That worked now, thanks a lot!!

    #884767

    Hi!

    You are welcome! Let us know if you have any other questions or issues! :)

    Cheers!
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Remove time (but not date) from the Enfold Latest News Widget’ is closed to new replies.