Tagged: comments, facebook, grid layout
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
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
Hi!
Insert following code into the quick css field
ol.comment-list{
display: none !important;
}
Best regards,
Peter