Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: How to edit Latest News widget [with Child Theme]? #245572

    Hi again!

    I don’t know if it’s our version of the setup or what but it’s only removing the date.

    Set up:
    Version: 2.5
    Installed: enfold
    AviaFramework Version: 1.8.6
    AviaBuilder Version: 0.5

    Before custom code:

    <span class="news-time">February 5, 2014 - 1:23 am</span>
    

    After adding to functions.php:

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

    this is what we get:

    
    <span class="news-time">1:23 am</span>
    
    in reply to: How to edit Latest News widget [with Child Theme]? #245397

    Thank you for your answer, this solved 2/3 of the issues!

    How can we remove the time from the widget as well? As a quick fix using

    .image_size_widget .news-time {
    display: none;
    }

    but is there a hook we can use much like for the date?

Viewing 2 posts - 1 through 2 (of 2 total)