Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26090

    Hi,

    where/in which file can I change the meta info of the frontpage/home, where I have a blog post overview section?

    I would like to change only the meta info (comments, date) there and not on a single post.

    I would like to change “/” to “|” and to change the date with the comments.

    Thanks.

    #129268

    Open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodespostslider.php and replace

    if($show_meta && !empty($excerpt))
    {
    $output .= "<div class='slide-meta'>";
    if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    {
    $link_add = $commentCount === "0" ? "#respond" : "#comments";
    $text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );

    $output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    }
    $output .= "<div class='slide-meta-time'>" .get_the_time(get_option('date_format'), $the_id)."</div>";
    $output .= "</div>";
    }

    with

    if($show_meta && !empty($excerpt))
    {
    $output .= "<div class='slide-meta'>";
    $output .= "<div class='slide-meta-time'>" .get_the_time(get_option('date_format'), $the_id)."</div>";
    if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    {
    $link_add = $commentCount === "0" ? "#respond" : "#comments";
    $text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );

    $output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>|</div>";
    }
    $output .= "</div>";
    }

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

The topic ‘ENFOLD: where to change the meta info of the frontpage blog overview page?’ is closed to new replies.