Hi Guys, congratulations on the theme - great work! I would like to remove a) comments field from post and b) comments counter box. Kudos!
Remove comments box from BrightBox.
5 posts from 3 voices-
Posted 1 year ago #
-
Hey,
in single.php remove following code:
comments_template( '/includes/comments.php');and in includes/loop-index.php remove:
<span class='comment-container'><?php comments_popup_link("<strong>0</strong> ".__('Comments','avia_framework'), "<strong>1</strong> ".__('Comment' ,'avia_framework'), "<strong>%</strong> ".__('Comments','avia_framework'),'comments-link', "<strong></strong> ".__('Comments<br/>Off','avia_framework') ); ?> </span>Posted 1 year ago # -
Thank you so much for your help!
Posted 1 year ago # -
Glad that I could help you :)
Posted 1 year ago # -
If you want to add this back loo for this code
//wordpress function that loads the comments template "comments.php"
?>
and add this code in the middle
comments_template( '/includes/comments.php');
also do the same for the following
look for<span class='post-date-comment-container'>
<span class='date-container'><span><?php the_time('d') ?></span><?php the_time('M') ?> <?php the_time('Y') ?></span></span>
and in the space add
<span class='comment-container'><?php comments_popup_link("0 ".__('Comments','avia_framework'), "1 ".__('Comment' ,'avia_framework'),
"% ".__('Comments','avia_framework'),'comments-link',
" ".__('Comments
Off','avia_framework')
); ?>
</span>Posted 1 year ago #
Reply
You must log in to post.














