Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24900

    Hi guys, I am really happy with the Enfold theme I recently bought. Beautiful!

    I am editing the blog and would like to change a few things that I couldn’t locate in other threads:

    1. Currently the number of comments and date are displayed in the blog thumbnails in grid layout. I would like to have only author and date – how can that be done?

    2. I have comments activated because I want to allow only facebook comments, but no wordpress. As you can see in the following post, both WP and facebook comments are displayed (in fact, facebook comments turned into WP’s). This looks bad and does not make sense. I also would like to remove the word “Comentários”. => http://transforme.is/20-maneiras-de-encontrar-a-sua-vocacao/

    Thanks for your help!

    Alex

    #125129

    Hi,

    1.) Edit wp-contentthemesenfoldconfig-templatebuilderavia-shortcodes postslider.php then find this code on line 317

    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>";
    }

    Replace it with:

    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>";
    }

    2.) If you want to disable the wp comment. Open single.php then find this code

    //wordpress function that loads the comments template "comments.php"
    comments_template( '/includes/comments.php');

    Replace it with:

    //wordpress function that loads the comments template "comments.php"
    //comments_template( '/includes/comments.php');

    Cheers,

    Ismael

    #125130

    Thanks, Ismael, very helpful!

    On 2), if I disable WP comments my facebook comments also disappear. How to get around that issue? I would like to get rid of only FB comments.

    Thanks again!

    Alex

    #125131

    Hi!

    Insert following code into the quick css field

    ol.comment-list{
    display: none !important;
    }

    Best regards,

    Peter

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

The topic ‘Not show number of COMMENTS on homepage/any grid layout – show only date/author’ is closed to new replies.