Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21880

    Hi,

    how can I hide the TIME (not the date!) in CORONA’s Widgets (latest news, combo widget)?

    Like here in the blog’s sidebar:

    http://www.kriesi.at/themes/corona/2011/03/31/this-is-a-nice-post/


    I have checked the class-framework-widgets.php and replaced in line 391

    if(empty($avia_config) || 'display title and excerpt' != $excerpt) { echo "<strong class='news-headline'>".get_the_title()."<span class='news-time'>".get_the_date($date_format)."</span>"; }

    the part get_the_time($time_format) with this string: get_the_date($date_format)

    So far so good – now I have no TIME in the “latest news” widget:

    But I found nothing similar in this PHP file concerning the combo widget:

    echo $before_widget;

    echo "<div class='tabcontainer tab_initial_open tab_initial_open__1'>";

    echo '<div class="tab first_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>';

    echo "<div class='tab_content'>";

    avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);

    echo "</div>";

    echo '<div class="tab widget_tab_recent"><span>'.__('New', 'avia_framework').'</span></div>';

    echo "<div class='tab_content'>";

    avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');

    echo "</div>";

    echo '<div class="tab widget_tab_comments"><span>'.__('Comments', 'avia_framework').'</span></div>';

    echo "<div class='tab_content'>";

    avia_get_comment_list( array('number' => $posts, 'status' => 'approve', 'order' => 'DESC') );

    echo "</div>";

    echo '<div class="tab widget_tab_tags"><span>'.__('Tags', 'avia_framework').'</span></div>';

    echo "<div class='tab_content tagcloud'>";

    wp_tag_cloud('smallest=12&largest=12&unit=px');

    echo "</div>";

    echo '<div class="tab last_tab widget_tab_categories"><span>'.__('Categories', 'avia_framework').'</span></div>';

    echo "<div class='tab_content'>";

    wp_list_categories('sort_column=name&optioncount=0&hierarchical=0&show_count=1&style=list&title_li=');

    echo "</div>";

    echo "</div>";

    echo $after_widget;

    How can I hide in the combo widget the post’s TIME (not the date)?

    Thanks.

    #113446

    SOLVED

    found in the same PHP file around line 959 in the section “get posts posts” the same strings and replaced them as mentioned above:

    echo "<span class='news-time'>".get_the_date($date_format)."</span>";

    #113447

    Hey!

    Glad that you solved the problem :)

    Best regards,

    Peter

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

The topic ‘How to hide the TIME in CORONA's combo widget (latest news)?’ is closed to new replies.